Create DimStyles by Layer Color

Create DimStyles by Layer Color

Anonymous
Not applicable
327 Views
2 Replies
Message 1 of 3

Create DimStyles by Layer Color

Anonymous
Not applicable

Hello to all. 
I ask for help to the teachers. 
I have the following layers in my drawings: 
ELE -___-___-___- BIN -___- BIN_X1 
ELE -___-___-___- BIN -___- BIN_X2 
ELE -___-___-___- BIN -___- BIN_X3
ELE -___-___-___- BIN -___- BIN_X...
ELE -___-___-___- BIN -___- BIN_Y1 
ELE -___-___-___- BIN -___- BIN_Y2 
ELE -___-___-___- BIN -___- BIN_Y3
ELE -___-___-___- BIN -___- BIN_Y... 


I need a routine to do a search in the layers table and create DIMSTYLEs, where the colors properties are the same color of each layer found. 
DimStyles names: X1, X2, X3, ...., Y1, Y2, Y3, .... 

Example: 
If the color of the layer "ELE-___-___- BIN -___- BIN_X1" = 1 
DimStyle X1 will have the properties ("dimclrd" 1.) ("dimclre" 1.) ("dimclrt" 1.) 

If the color of the layer "ELE-___-___- BIN -___- BIN_X2" = 50 
DimStyle X2 will have the properties ("dimclrd" 50.) ("dimclre" 50.) ("dimclrt" 50.) 

Can anyone help me?

Thanks in advance.

0 Likes
328 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

Are Dimensions in those Styles always going to be on those particular Layers, or if that's not the current practice, can you dictate to Users that they must be?  If so, you could have just one Style, with all those element colors set to Bylayer.

Kent Cooper, AIA
Message 3 of 3

Anonymous
Not applicable

Hi Kent,

 

First of all, thanks a lot for your attention.
Your suggestion to create dimstyles with setup color bylayer is interesting.
Best regards.

0 Likes