LISP Routine for Merging Layers after importing a PDF File...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I was hoping to learn how to write a LISP routine that would merge any layers that have a PDF#_ Prefix with a layer that has the same suffix after the PDF#_....
I have to do this anytime I import a PDF and each PDF can have 20-30 layers so its a time sink and repetitive...
As an example....
Drawing has these 3 Layers.
Layer 1
Layer 2
Layer 3
After I import a PDF it has these additional layers...
PDF1_Layer 1
PDF2_Layer 2
The routine would do the following:
1.) Find any Layer with a PDF#_ Prefix (in this case PDF1_Layer 1 & PDF2_Layer 2)
2.) See if there is a layer with the Same Suffix (in this case Layer 1 & Layer 2)
3.) Meger PDF1_Layer 1 into Layer 1, Merge PDF2_Layer 2 into Layer 2
The only known information about the layer names is the Prefix PDF_ or PDF#_
Thanks for your help...Hopefully that makes sense?
Layer Name PDF1_Line1