vernonlee 发表于 2022-7-5 19:45:12

HELP: LISP/Macro script to br

I have a specific layer name that I constantly need to have it "bring to front" in terms of draw order.
 
Can someone help me with a LISP/Macro script that do just that?
 
Thanks

stevsmith 发表于 2022-7-5 20:00:02

Please refer to this thread.
 
http://www.cadtutor.net/forum/showthread.php?26055-Lisp-for-Automatic-Draw-Order-Command-to-a-specific-Layer.&highlight=draw+order%2C+dimension
 
All you would have to do is rename the layer and change the setting to "front"

Lee Mac 发表于 2022-7-5 20:08:34

You could use my Draw Order functions.

vernonlee 发表于 2022-7-5 20:11:34

 
Thanks. WIll go through it.

vernonlee 发表于 2022-7-5 20:20:42

 
Briefly saw it. But it cannot reorder by layer name only right? The layer still have to be selected, am i correct?

vernonlee 发表于 2022-7-5 20:33:51

 
This particular LISP from Lee Mac did the trick.
 
However the wildcard layer name do not seems to include xref layers.
 
I also include it as a specific layer name as such : "xref dwg name|Layer name". But no go.
 
Any advise to include xref layers?
 

Lee Mac 发表于 2022-7-5 20:37:58

 
Note that the programs listed on the main function page are only examples - you can design any custom program to call the draw order functions, including one that will prompt for a layer name.
 
Alternatively, there is my Layer Draw Order program.

Lee Mac 发表于 2022-7-5 20:49:42

 
Since the standard AutoCAD DRAWORDER command operates with a set of objects as opposed to layer names, the supplied objects must be primary objects as AutoCAD commands which accept a selection set cannot work with nested objects.
 
Whereas, my Draw Order functions (as suggested above) will operate with objects derived from any owner (that is, primary objects in any layout, or objects contained within a block definition ).
页: [1]
查看完整版本: HELP: LISP/Macro script to br