Script merging layers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I have a lot of AutoCAD drawings with certain layer names. All these drawings already have the "new" layers inserted.
Now the contents of the "old" layers need to be merged into the "new" layers
so for instance layer "01 Dimensions" needs to be merged into "04-DIMENSION"
layer "05 Center" needs to be inserted into "12-EQUIP-CEN"
layer "02 Project dimensions notes" needs to be inserted into "05-TXT&SYM" and so on
It could be that some "old" layers are already purged out.....
I made a script but keep getting errors.....
"
; Merge Multiple Layers
;
; EX. LAYER NAME NEW LAYER NAME
-LAYMRG
N 01 Dimensions N 04-DIMENSION Y
N 05 Center N 12-EQUIP-CEN Y
N 13 Border N 01-OUTLINE Y
N 02 Project dimensions notes N 05-TXT&SYM Y
N 03 Load N 0 Y
N 05 Center N 12-EQUIP-CEN Y
N 06b Equipment N 0 Y
N 06c ALE Equipment R N 0 Y
N 06d ALE Equipment G N 0 Y
N 07a Equipment hidden N 11-EQUIP-HID Y
N 07b Equipment hidden N 11-EQUIP-HID Y
N 14 Hidden N 16-SCHEME Y
N 15 Viewport N 06-VIEWPORT Y
"
help...
Thanks for your support