Tool>Display>Order

Tool>Display>Order

Anonymous
Not applicable
251 Views
4 Replies
Message 1 of 5

Tool>Display>Order

Anonymous
Not applicable
I would like to write a VBA routine to duplicate the Tool->Display

Order->Bring To Front command.


I would like to build a selection set based on certain filters and then

Bring them to the front 🙂


any idea on how to change an entities display order?

Thank you for your time and have a good day



0 Likes
252 Views
4 Replies
Replies (4)
Message 2 of 5

Ed__Jobe
Mentor
Mentor
Display order is controlled by the order in which entities are created. The only permanent way to change it is to recreate the ents to be displayed on top. A common method is to copy the ents at the same location and erase the originals.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi Mike
did you find a solution? i do this in lsp but have a need to use vba code to do the same thing. - thanks, nancy - nancym@astroshapes.com
0 Likes
Message 4 of 5

Anonymous
Not applicable
correct me if i'm wrong, but... doesn't a call to the draworder command work too.
0 Likes
Message 5 of 5

Anonymous
Not applicable
I use "draworder" & lsp....


(setq ss_wo (ssget "X" '((8 . "wo*"))))
(setq ss_se (ssget "X" '((2 . "se"))))
(command "draworder" "all" "r" ss_se "" "f")
(command "wipeout" "frame" "on")
(command "draworder" ss_wo "" "a" ss_se)
(command "wipeout" "frame" "off")


well... that's the basic idea. I need to do the same thing in vba. my problem is that i'm not real good at the "ssget" part. can anyone help?


Thanks, Nancy nancym@astroshapes.com
0 Likes