Casey Roberts
2004-10-05 20:51:45 UTC
Does anyone have a lisp or is anyone able to point me in the right direction
for creating a lisp that will do accomplish the following.
Currently, I have a drawing with multiple layers that have been prefixed
with a drawing name (These were xref's that have been bound to the drawing I
am working with.)
There are several 'similar' layers which I would like to merge into the same
layer. The difference between the layernames is the prefix portion. Is
there a way to automate this process as typing in all the layer names is a
time consuming process.
For example, I have a drawing with layers named:
UNIT-A-1$0$A-BALCONY
UNIT-A-1$0$A-COLUMN
UNIT-A-1$0$A-RAIL
UNIT-B-1$0$A-BALCONY
UNIT-B-1$0$A-COLUMN
UNIT-B-1$0$A-RAIL
UNIT-C-1$0$A-BALCONY
UNIT-C-1$0$A-COLUMN
UNIT-C-1$0$A-RAIL
UNIT-D-1$0$A-BALCONY
UNIT-D-1$0$A-COLUMN
UNIT-D-1$0$A-RAIL
I would like them combined into layers
A-BALCONY
A-COLUMN
A-RAIL
(this is only a small portion of the actual layer list)
TIA
Casey
for creating a lisp that will do accomplish the following.
Currently, I have a drawing with multiple layers that have been prefixed
with a drawing name (These were xref's that have been bound to the drawing I
am working with.)
There are several 'similar' layers which I would like to merge into the same
layer. The difference between the layernames is the prefix portion. Is
there a way to automate this process as typing in all the layer names is a
time consuming process.
For example, I have a drawing with layers named:
UNIT-A-1$0$A-BALCONY
UNIT-A-1$0$A-COLUMN
UNIT-A-1$0$A-RAIL
UNIT-B-1$0$A-BALCONY
UNIT-B-1$0$A-COLUMN
UNIT-B-1$0$A-RAIL
UNIT-C-1$0$A-BALCONY
UNIT-C-1$0$A-COLUMN
UNIT-C-1$0$A-RAIL
UNIT-D-1$0$A-BALCONY
UNIT-D-1$0$A-COLUMN
UNIT-D-1$0$A-RAIL
I would like them combined into layers
A-BALCONY
A-COLUMN
A-RAIL
(this is only a small portion of the actual layer list)
TIA
Casey