Merge layers while preserving the formatting of each of them

Merge layers while preserving the formatting of each of them

Anonymous
Not applicable
1,826 Views
8 Replies
Message 1 of 9

Merge layers while preserving the formatting of each of them

Anonymous
Not applicable

If we have 2 layers of polylines, one polyline is dotted in green, the second polyline is marked with arrows in red, for example, these are low-voltage and high-voltage power lines. Can I put them on 1 layer (Electricity) while preserving the formatting of each line?

0 Likes
Accepted solutions (1)
1,827 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable

In my testing, all objects will take on the merged layer properties.

0 Likes
Message 3 of 9

Kent1Cooper
Consultant
Consultant

Are the dotted-green and arrowed-red the ByLayer properties of those two Layers?  Or are they override properties imposed on the Polylines?

 

If the former, it would certainly be possible to make a routine that would find those properties from the source Layers, impose them as overrides on the objects on those Layers, and move them to a different Layer.

 

If the latter, you can just put them on the new Layer.

Kent Cooper, AIA
0 Likes
Message 4 of 9

Anonymous
Not applicable

Attached an example
1 layer red line
2 layer green
Can I merge them into a Summary 1+2 layer while retaining the formatting?

If yes, please tell me step by step

0 Likes
Message 5 of 9

pendean
Community Legend
Community Legend
You will need to assign those objects overrides that match the source layer settings BEFORE you merge them with the destination layer.

That's how it works, unless you want to customize with LSIP (that forum is over here https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130 )

HTH

0 Likes
Message 6 of 9

Anonymous
Not applicable

If you have specific linetypes for each object you can select the layers you want to merge and then merge them. Right click in the layer properties to see the merge option. If they are set to bylayer than this will not work.

0 Likes
Message 7 of 9

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

.... Can I merge them into a Summary 1+2 layer while retaining the formatting?

If yes, please tell me step by step


Since their colors and linetypes are all property overrides, yes, you can do that.  Just select them, and in the Layer slot in the Properties palette, or in the Layer part of the ribbon's pull-down Layer list, pick the Layer you want them on.  They will keep their override properties.

Kent Cooper, AIA
0 Likes
Message 8 of 9

Anonymous
Not applicable

Sorry, I do not understand(

0 Likes
Message 9 of 9

Anonymous
Not applicable

Understood. thank

0 Likes