Jump to content

Recommended Posts

Posted

Hello All,

 

I work with projects that require several layers. I was wondering if anyone knows of a way to automatically create x number of layers with names like "name_1," "name_2," "name_..." "name_n-1," "name_n" without having to manually input each layer's name. Furthermore, I need each layer to have a different color. Again, is there a way to assign different colors automatically without having to go in and do it manually layer by layer?

 

You all have been very helpful so far and I appreciate the time you take to help me become a better CADer.

 

Best Regards,

Beef

Posted

For new drawings, you could create the Layers and assign the Colors in a Template file (.dwt) Any drawing started using that template will already have the Layers set up (same goes for Dimension styles, Text Styles, Linetypes, etc )

 

For existing drawings, insert the template (mentioned above) into the existing drawing and all the layers will be imported. (note: if the existing drawing already has a Layer, Style, Linetype, etc with the same name, the existing Layer, Style, Linetype will NOT be overwritten)

Posted

Hi, nestly.

 

Can you tell me exactly what you mean by "insert the template into the existing drawing?"

 

Thanks.

Posted

Here's a Youtube video that demonstrates several methods of importing layers from existing drawings/templates. The INSERT method is covered from 4:00 to 5:15, but you may find some of the other techniques better suited to your needs.

Posted

The other simple way is to use a script just save this modify as required, you can have way to many layers then do a individual purge to remove unwanted after using, you can re run the script as many time as you like to re add.

 

-purge la Name_* N

 

-Layer
N name_1 C name_1 1 Lt name_1 dashed 
N name_2 C name_2 2 Lt name_2 continuous 
N name_3 C name_3 3 Lt name_3 dashed2 
N name_4 C name_4 1  Lt name_4 centre 

  • 3 weeks later...
Posted
Here's a Youtube video that demonstrates several methods of importing layers from existing drawings/templates. The INSERT method is covered from 4:00 to 5:15, but you may find some of the other techniques better suited to your needs.

 

Thank you, nestly. Unfortunately I can't view Youtube right now, but I will definitely give this a look when I get home. I appreciate your response.

 

Beef

Posted

Ah. I know what you're showing me. Yes, I've already figured out how to do that. I'm looking for something more like a script, which I've learned more about since posting originally. I think I have my answer. Thanks anyway.

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...