- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hallo, I need help.
I have more than 50 layers in Autocad.
In each layer there are polylines with associative hatches.
I need to use LISP in batch to move these polylines (or, conversely hatches) to other layer (existing or maybe create new...), so that the boundary polylines are in a different layer than hatches still associative with them.
I have no problem to manually write for all those layers from which to which to move it.. It will be used the same way repeatedly in the future.
Example:
Polyline_01 + Hatch_01 is in Layer_01
Polyline_02 + Hatch_02 is in Layer_02
....
Possible Result A:
Hatch_01 is in Layer_01
Polyline_01 is in Layer_01x
Hatch_02 is in Layer_02
Polyline_02 is in Layer_02x
...
Possible Result B:
Hatch_01 is in Layer_01x
Polyline_01 is in Layer_01
Hatch_02 is in Layer_02x
Polyline_02 is in Layer_02
Importantly, there will not always be a complete list of layers in the DWG. So lisp will not get stuck if it doesn't find a layers list in the DWG.
I don't care if completely new layers are created or just moved to existing, because in the end I'll use a batch rename of all layers with a different lisp anyway, and what I need is an intermediate step.
Is there a suitable LISP for this? Or can someone write it?
Solved! Go to Solution.