|
Is there any way to check the status of a LAYER. ei. is it frozen, off, locked etc... First create the layer STEEL then type the following : (setq t (tblsearch "LAYER" "STEEL")) The entity list of the layer STEEL should be returned : ((0 . "LAYER") (2 . "STEEL") (70 . 64) (62 . 7) (6 . "CONTINOUS")) The first part of the entity list is '0',
indicating Associative 0. If the (tblsearch) had not found the layer then it would have returned 'nil' and you would know that the layer did not exist. Therefore, all you have to do is test for the relevant associative code value to determine the status of your layer. |
|