Jump to content

Recommended Posts

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Hi, nestly.

 

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

 

Thanks.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×