![]() ![]() (princ "\nCan't delete layer in use! ") If vl-catch-all-error-p returns T, then Layer Cannot be Deleted. (list dLay))) If Possible, Delete the Layer Click the layer you want to delete to select it (or Shift-click to select several layers), and then click the trash can. Drag the layer you want to delete to the trash can (see Figure 4-19). (princ "\nLayer does not exist! ") If vl-catch-all-error-p returns T, then Layer Doesn't Exist In the timeline, right-click (Control-click) the layer you want to delete and then, from the shortcut menu that appears, choose Delete Layers. (list la圜ol(strcat Name))))) Retrieve Layer Object Name from Layer Collection? (same as tblobjname?) (vlax-get-acad-object)))) Retrieve Current Layer Collection ![]() (/= (strcat Name)(getvar "CLAYER")) Check its not Current Layer (defun DeleteLayer(Name / la圜ol dLay oVal) Would you be so kind as to tell me if my annotations are correct, or correct me if I am wrong. I have tried to dissect your code to understand the VL behind it (as I am endeavouring to learn VL now). Make sure you edit them while you are in the correct layer or you may accidentally change its layer.Many thanks for your code ASMI - there are many error trappings in there to help. Even though they appear to be occupying the same space they must be edited separately. NOTE: these are now two separate objects. Now you have an identical object on two separate layers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |