[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Set or Change Layer
Tip# 4230 By Phil Clark On 20-Dec-2013
0
Rated By 0 users Downloaded : 68
Categories : Object Properties
Software type : AutoCAD 2014
Rename File To : ComLayers.LSP
If you like to preselect entities, this routine is for you.

Phil Clark makes use of the (ssgetfirst) LISP function to facilitate users who like to preselect entities. In this routine, if entities are preselected their layer is changed, and if no entities are preselected, then the current layer is changed. This routine is in the form of a function that should be called from within a larger LISP routine, but it could be used in a menu macro too. After the code is loaded, call the routine using this syntax: (COMLAYERS "layername"). If nothing is selected, "layername" will become the current layer. If objects are selected, then those objects are moved to "layername."

 

Average Rating:
0


User comments


Log In