The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 New Feature Request
 Reverse Sort via META COMMAND

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Miksteele Posted - January 09 2004 : 08:47:28 AM
Our new large format printer stacks our drawings face up. Of course Hurricane's REVERSE SORT saves the day!

I realize I could automatically "descend" my Smart-Sorted Queue...however I prefer to work with a "ascending" queue for several other tasks. I am thinking that possibly... most users who use the REVERSE SORT feature, use it to reverse there queues for plotting purposes...??? Hence...if there was a REVERSE SORT META COMMAND I could add it to all my plot scripts

Is the REVERSE SORT a META COMMANDable feature

12   L A T E S T    R E P L I E S    (Newest First)
Admin Posted - January 17 2004 : 11:15:06 AM
Great!

I'll put that up as the latest FULL build... I think that includes quite a few enhancements.

Thanks again for your feedback!

Regards,
Bill
Miksteele Posted - January 17 2004 : 09:27:12 AM
Ahh Haa! Very Good!

It's amazing how a little META can speed things up!
Admin Posted - January 16 2004 : 6:52:34 PM
Hi Miksteele,

I've added a few error handlers... can you see if your errors appear any more?

If you try to load a blank FileList, nothing should happen, and if you click on a script that has a sort META with 0 files in the Queue, you shouldn't get an error either.

Hope this helps!
Bill

Download Attachment: hurricane6.2.11.zip
155.54 KB
Miksteele Posted - January 16 2004 : 3:31:27 PM
This is becoming VERY useful!

Just a few tweaks to go...I get an "ERROR 9 - Subscript out of range" when the queue is empty and a Sort META is within the script.

Miksteele Posted - January 12 2004 : 3:19:31 PM
I think one could make ALL of the METAS defeat themselves if they wanted to

Your comments on a check-box indicating REVERSE gets me thinking But I'm thinking Sort Status in general, but not a check-box...I'll tuck it away for now...

Maybe some of the other users will incorporate the sorting METAs into there plot scripts. This might generate some helpful responses in this forum.

Thanks Bill!
Admin Posted - January 12 2004 : 3:00:36 PM
Ah!

No aplogies required! I'm off on another planet overcomplicating things!

I see... you wanted to run the script from bottom to top without having to resort. Although I can add that feature, for now, reversing it will accomplish the same thing (using the META sort commands).

Good idea though! It's now just a matter of whether there should be a "reverse" checkbox AND a meta command to control sorting. I don't think BOTH would help the other (a user could have sorted one way with META then also have the META for the checkbox selected), double-reverse, which ends up plotting the way it was originally shown! hahah... ah well...

I think, for now, I'll leave things alone if you are satisfied with the results!?

Regards,
Bill
Miksteele Posted - January 12 2004 : 1:00:22 PM
My apologies...

Is the purpose of any META command to temporary modify an otherwise standard setting? (or, Could the purpose of a META command....)

I think 6.2.8 and 6.2.9 did a fine job. However, I can see how a constant resort on the queue via LIVE META could cause havoc...but I wasn't experiencing a constant flip flop...so I am not sure...


All I was thinking was to process a plot script from the queue bottom to top, hence REVERSE META. I didn't see a REVERSE META, just descending and ascending metas. Could that be the issue

I see 6.2.10 only reverses the queue upon script load and not during Live META, but the other meta's still react to live meta. If this works for you...it works for me...
Admin Posted - January 11 2004 : 06:48:53 AM
With SORT.???? commands in User Script:

6.2.8 - Didn't sort Queue automatically when a FileList is loaded

6.2.9 - Sorts when when you load-up the Queue through the FileList.

However, there is a conflict that I'm trying to work out, as "Enable META Commands" by definition were triggered when a script is LOADED (or clicked on), and LIVE META was triggered as you type the commands.

When the user loads a filelist using the "FileLists", then they really haven't selected a script, nor typed anything. By triggering the META commands when the files are loaded from the FileLists, when you have the new AutoSort feature enabled will cause the list to be sorted twice. First when the FileList is loaded and AutoSORT does it's thing, THEN again to whatever META sort was instructed. (This can sort them twice, in two different ways...)

The same thing happens when you click the "Add" or "Add All" buttons.

There is another problem with having the sorting update with LIVE META enabled, is that the list gets resorted each and every time the script is changed (i.e. after EACH keystroke). This is quite ugly. I think I will disable the LIVE META with the sorting commands altogether, it is not practical to sort after every keystroke, but only after a major event like a FileList load or script load (or file insertion).


Here's an alteration that doesn't resort the Queue after each keypress, but resorts (with the META commands taking precedence over the AutoSort in Options.

Let me know what you think... but it seems totally impractical to have META commands to sort the queue that work with the LIVE META option (my fault in the first place for trying! ). So below is the result...

Regards,
Bill

Download Attachment: hurricane6.2.10.zip
154.88 KB
Miksteele Posted - January 10 2004 : 1:05:25 PM
Hi Bill...

Okay...Help me out. What changes were made between 6.2.8 and 6.2.9?

I don't see a difference.
Admin Posted - January 10 2004 : 12:41:58 PM
Hi Miksteele,

Ooops... I slipped up

Thanks for noticing... here is the fix...

Regards,
Bill

Download Attachment: hurricane6.2.9.zip
154.66 KB
Miksteele Posted - January 10 2004 : 10:16:20 AM
Wow ! You surprised me with the "TAGS.TEMPLATE=", that can come in handy. I have been using the "PROJECT TAGS" to eliminate the task of loading the correct Static Tag Template. But...now I have some options. My project tags could now handle just the project specific stuff (as intended)...and I can implement a workable set of Static Tags and load them automatically....Slick!


The Meta Sorting is equally as Slick! I've played with this a bit, maybe I am missing something....try this...

1)...Load your favorite Plot Script
2)...Insert the following line in your plot script
;SMARTSORT.DESCENDING
2)...Load up your queue with a Ascending-Smart-Sorted filelist
3)...Click on CREATE BATCH SCRIPT and you will notice the queue remains in ascending order and the script is created in ascending order

Now... with your Live Meta Enabled...a quick work around is to manipulate your script with a keystroke on a ; remarked line

I appears that the script is scanned upon loading and not at the time of script creation. I'm sure there is a reason for this ???

Another work around would be to load the script after queuing up. I know I will probably naturally encounter both scenarios. It all depends how many filelists I run separately on the same script...

This is very workable as is. Only one keystroke in the script window can be quicker than clicking through a context menu.

Thanks Bill!
Admin Posted - January 10 2004 : 05:57:50 AM
Mi Miksteele,

No problem... Attached you will find the new EXE with 5 more meta commands (accessible through the dropdown in the Script Editor)

They are pretty well self explanatory.

SORT.ASCENDING
SORT.DESCENDING
SMARTSORT.ASCENDING
SMARTSORT.DESCENDING
SORT.AUTO - Just sorts to whatever you have set in the Options->Gui->Autosort settings (whether AutoSort is enabled or not).

I also noticed an omission, and corrected it.
"TAGS.TEMPLATE=" was missing from the Meta Commands dropdown in the script editor.


Thanks again for your valued input!

Regards,
Bill

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.16 seconds. Snitz Forums 2000