Jump to content

Any LISP or quick method to "copy" all layers from 100+ drawings to a single drawing?


Recommended Posts

Posted

Any LISP or quick method to "copy" all layers from 100+ drawings to a single drawing?

 

Not necessary to have any block or enity in that single drawing. Just purely layers only

 

Thanks

Posted

Check out Lee-mac's Steal and maybe can be used in conjunction with a script 100 dwg's?

Posted

Thanks BIGAL.

 

Yes i use Lee-mac's Steal before. Did not think of that. Anyone can advise how to use Script for 100 dwgs? I curently have scriptpro as well.

 

Thanks

Posted

The script bit is easy need Lee's help first

 

(Steal layer1 dwg1)

(Steal layer1 dwg2)

Posted

Just thinking you can insert all drawings into current drawing explode once then purge pretty easy, can you elaborate a bit more what exactly you are getting from other drawing is it to be like an index sheet of 100 blocks? I can see problems if trying to line up 100 continuous drawings like a city map.

Posted
..., can you elaborate a bit more what exactly you are getting from other drawing...

 

Agreed.

 

@vernonlee

 

I believe that this is only a one time thing, I mean collecting all the layers from 100+ drawings? as soon as you have all those layer names and properties, you can use that list using a layer import routine.

 

Question: what if the 25th drawing and 49th drawing have the same layer names but different properties , what then?

Posted
Yes i use Lee-mac's Steal before. Did not think of that. Anyone can advise how to use Script for 100 dwgs? I curently have scriptpro as well.

 

The script bit is easy need Lee's help first

 

(Steal layer1 dwg1)

(Steal layer1 dwg2)

 

Many thanks for the recommendation BIGAL :thumbsup:

 

This link describes how to 'Steal' from multiple drawings; though, as others have noted, I think it would be beneficial to understand more about what you are trying to accomplish as there may be a better solution.

 

Lee

Posted

OK. Let me clarify how this came about.

 

I have roughly 100+ dwg whereby i will convert all layers except defpoints to a single layer called "deleted work".

Most drawing is using xref main pertaining to their different storey. eg, xref-22th, xref-15th....

So this are the steps.

1) opening dwg

2) bind the xref (the layers will retain their xref name)

3) Use Laytrans to do convert to "deleted work" layer

a) load a sample dwg that has the "deleted work" layer

b) Select the layers in TRANSLATE FROM to change except defpoint then in TRANSLATE TO i click "deleted work" & click MAP.

c) Pressing TRANSLATE a popup will appear WITH 2 OPTION:-

TRANSLATE AND SAVE MAPPING INFORMATION

TRANSLATE ONLY

 

Now here is the thing. If i select to save MAPPING INFORMATION, it will save into a DWS file.

So for subsequent dwg, instead of loading a sample dwg, loading this DWS file will allow similar layers that was previous selected to automatically be selected. Which is great if not for the different layer naming due to the xref binding (which i have to do this way)

 

So that is basically why i wanted to combine all drawings layer into a single dwg. start the laytrans command then just 1 time i will select all layers then save the MAPPING INFORMATION into a sample.dws file.

So for the next 99 drawing i can just load the sample.dws file & have all layers (except defpoint) selected instead of haveing to select again & again for each drawings.

 

Hope you understand what i mean.

 

Alternatively, if there is a better way to convert all layer to a single layer without LAYTRANS command i will be interested to know as well.

 

Thanks BIGAL & LEE. I will try the suggested link & see how it goes.

 

But if there is a better way , then i do not have to combine all layers to a single dwg.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...