
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
i am new to AutoCAD AutoLISP. I have a problem that I cannot solve on my own.
Is there any way to Automate following process using a Macro / AutoLISP file?
There are multiple layers with standardized names.
E.g.:
Arch1_TXT_NEW
Arch1_TXT_STOCK
Bul1_CMS_NEW
Bul1_CMS_STOCK
Is there any way i can wirte a script that compares the layer names, then if it finds a matching pair where the difference is only the text "NEW" and "STOCK" and applies to all elements in the layer "NEW" the layer "STOCK", iterating through all layers and then cleaning the empty "NEW" layers with a purge command?
I would be really thankful if somebody could guide me how to do this. Also, if if my text is incomprehensible, please draw my attention to it, i am not a native english speaker.
Kind regards,
Robert
Solved! Go to Solution.