Message 1 of 11
Script\macro that will delete layers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am working on a script that I will eventually turn into a macro for my cui. The purpose of the script is to delete certains layers that are in an Architect's Revit export that my engineers never need to see in the files that they use for xrefs. I know that laydel can delete the layer but it will not cycle through if the layers do not exist. Is it possible to do a if layer exists delete it for a macro/script? If not, how would I handle it within a lisp? see below for the script.
Thanks
-LAYDEL n a-anno-keyn n a-anno-dims n a-wall-patt n g-anno-note n g-anno-symb n a-wall-iden n g-anno-text n a-anno-symb y -layer c 8 ** setbylayer all y y -overkill all d -purge all n