vernonlee Posted May 28, 2015 Share Posted May 28, 2015 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 Quote Link to comment Share on other sites More sharing options...
stevsmith Posted May 28, 2015 Share Posted May 28, 2015 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" Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2015 Share Posted May 28, 2015 You could use my Draw Order functions. Quote Link to comment Share on other sites More sharing options...
vernonlee Posted May 29, 2015 Author Share Posted May 29, 2015 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" Thanks. WIll go through it. Quote Link to comment Share on other sites More sharing options...
vernonlee Posted May 29, 2015 Author Share Posted May 29, 2015 You could use my Draw Order functions. Briefly saw it. But it cannot reorder by layer name only right? The layer still have to be selected, am i correct? Quote Link to comment Share on other sites More sharing options...
vernonlee Posted May 29, 2015 Author Share Posted May 29, 2015 (edited) 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" 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? (defun c:OrderLay ( / laylist ss ) (setq laylist '("LAYER1" ; <---<< List Layers Here. "LAYER2" "LAYER3" )) (foreach lay laylist (if (setq ss (ssget "_X" (list (cons 8 lay)))) (command "_.draworder" ss "" "_F") ) ) (princ) ) Edited May 29, 2015 by vernonlee Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 29, 2015 Share Posted May 29, 2015 Briefly saw it. But it cannot reorder by layer name only right? The layer still have to be selected, am i correct? 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. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 29, 2015 Share Posted May 29, 2015 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. 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 [an xref is merely a special type of block]). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.