(command "_.-Layer" "lock" "grid,mark" "freeze" "grid,mark" "")
How do I set one of several layers locked.
Currently what I'm doing.How do I set one of several layers locked.
MaybeCode - Auto/Visual Lisp: [Select]
'(100 . "AcDbSymbolTableRecord") '(100 . "AcDbLayerTableRecord") ("continuous") ) ) ;;1 = plottable 0 = not=plottable );; end list );; end entmake );; tblsearch );; cond );; end _addlayer (_addlayer "layername" 1 4 "continous" 1) ;;indicate flag as 4 )
Example: To lock and freeze the grid and mark layers (if you're not averse to using "command"):Code: [Select](command "_.-Layer" "lock" "grid,mark" "freeze" "grid,mark" "")
Separate layer names with commas and no spaces.
Steve
Another one:Code - Auto/Visual Lisp: [Select]
) ;_ end of vl-catch-all-apply ) ;_ end of foreach ) ;_ end of defun
Creating Layer State las files that can easily be imported into any drawing or template is another option. They can be applied to a Viewport to create overrides as well. They can also be imported from DWG's, DWT's & DWS's.