Hi,
I have several drawings used in a prototype drawing set that I wish to process and change the draw order of my border to send it to the back. If I use (command "draworder" (tblsearch "block" "aceborderb") b ) the command line returns nil. I have no indication whether the selection is being passed to the draworder command or not. I'm pretty sure there is something wrong with my syntax. Any help is much appreciated.
Thanks,
David
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
@david_brude wrote:...I wish to ... change the draw order of my border to send it to the back. If I use
(command "draworder" (tblsearch "block" "aceborderb") b )
the command line returns nil. I have no indication whether the selection is being passed to the draworder command or not. ....
Commands requiring object selection need to be fed entity names. But (tblsearch) returns a whole list of data about the Block definition, and nothing about any inserted copy of the Block. Also, you need to complete the selection with an Enter [""], and the Back option needs to be in double-quotes.
If there's only one such Block in the drawing [including all layouts], you could probably do it with something like this [untested]:
(command "_.draworder" (ssname (ssget "X" '((2 . "aceborderb"))) 0) "" "_back")
Thank you Kent. Your solution was spot on and worked the first time. I had looked at ssget but didn't know how to apply it. I need to study more. Regards, David Brude