Is there a routine where I can copy layers from one drawings to another? I often use Design Center to drag and drop layers from our master template into older drawings, so I can have the all the latest layers in all the drawings. Does anyone know of any LISP or macros that would accomplish the same thing?
> Is there a routine where I can copy layers from one drawings to
If you were to consider third party software, the Drawing > Query
Import in ToolPac 7.0 from http://www.dotsoft.com will do this. You
can also restrict object types and locations at the same time. Dialog
It may sound a little unorthodox, but all I did was create a small block to insert into our old drawings. All it is is a bunch of pieces of dtext giving the name of the layer (although, it doesn't need to have the name of the layer or even be a piece of text, for that matter) but each string of text is actually on that layer. Then I saved it as a block so when I insert it into the drawing, poof...all of the layers are there. One thing about that is when you delete the block, those layers will all be 'purgeable'. Like I said, it's a pretty mediochre way of doing it, but it works. Good Luck though! Mike
At one time I used to use a block as TheCanuck mentioned. I especially loved it when we were updating drawings created in R14 to R15 because I could set the new 'Page Setup Name' for saved plot setups. When I inserted that block all of the layers, lt, styles and plot settings came in. However, you can also build a program that utilizes (entmake) to create the desired layers. That also insures you are carrying additional information that may be resident in the block that you may not want. For example, dictionaries that were added by an errant arx on someones workstation or proxy objects that are unpurgable and uneraseable.
I have a routine that will:
1. Export layer info, excluding Xref layers. Exported data inlcudes Layer
name, color, linetype, lineweight, plottable, frozen, on/off. The exported
data is sent a comma delimited file that can be edited (for making additions
or deletions or whatever) in notepad or Excel.
2. Import that data file into any other drawing and all the layer states of
the original drawing will be loaded into the new drawing.
I wrote this so that I could have an easily modifiable "master" layer file
for different disciplines that I can take & run on any workstation I may
need to. (I subcontract my services to many firms.)
If this is what you were looking for I could polish it up and send you a
"cdice" wrote in message
> Is there a routine where I can copy layers from one drawings to another? I
often use Design Center to drag and drop layers from our master template
into older drawings, so I can have the all the latest layers in all the
drawings. Does anyone know of any LISP or macros that would accomplish the