I have 3 Xrefs in a drawing (test 1) (test 2) & (test 3) I would like to call up each of these and specify the order they are in through the command line without using the cursor.
Any help would be appreciated.
|
I have 3 Xrefs in a drawing (test 1) (test 2) & (test 3) I would like to call up each of these and specify the order they are in through the command line without using the cursor.
Any help would be appreciated.
Are you referring to Draw Order?
Will the reference names of the XREFs change between drawings?
Have you tried using the SSGET function with a filter?
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
Yes draw order is what I am referring to.
I would like to run this code from a live lisp that I modify as I move through projects.
1.If I could call up all the xrefs in the drawing and then specify the order
2.if I could call up a specific drawing and send to back/bring to front
I am aware that (ssget "x") selects all within the drawing but I'm unsure how to filter for xref's
Thanks for the fast response.
1.If I could call up all the xrefs in the drawing and then specify the order
2.if I could call up a specific xref in a drawing and send to back/bring to front
sorry for the typo in the response below.
You need something like Lee-mac's list box routine allows you to move items in a list. http://www.lee-mac.com/listboxfunctions.html is the way to go.
Getting xref names is not a problem.
Code:(setq lst '()) (setq blocks (vla-get-Blocks (vla-get-ActiveDocument (vlax-get-acad-object)))) (vlax-for blk blocks (if (eq (vla-get-IsXref blk) :vlax-true) (setq lst (cons (vla-get-Name blk) lst )) ) )