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." |