Add a prefix to Layer and Color Assignment

Add a prefix to Layer and Color Assignment

Anonymous
Not applicable
1,722 Views
7 Replies
Message 1 of 8

Add a prefix to Layer and Color Assignment

Anonymous
Not applicable

Is there a way to add a prefix to the Automated Layer and Color assignment on the Piping settings similar to the Pipe Support Settings?  I would like to Assign layer by "Line Number Tag" and add a 2 letter prefix with a dash before each line number.

0 Likes
Accepted solutions (2)
1,723 Views
7 Replies
Replies (7)
Message 2 of 8

h_eger
Mentor
Mentor

Dear @Anonymous,

 

can you use an example to show which information you want to see on your tag as a prefix?

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



0 Likes
Message 3 of 8

Anonymous
Not applicable

Project Setup.PNGLayers.PNG

I would like to add 2 alpha characters then a dash before the line number in the Layer and Color Settings of the project so that it will show up in the layers.  Where I have layer 01, I would like it to say layer DP-01.  You are able to do it with the supports and am hoping to do it with the Assign later by area too.

0 Likes
Message 4 of 8

jabowabo
Mentor
Mentor
Accepted solution

This is achievable with PLANTDEFINECALCPROPERTIES.

 

I assume you want to assign the prefix by line number but you can do it by component also.

 

1. Create a new Plant 3D Line Group level property (mine is a picklist):

new prop.PNGPicklist.PNG

2. Create a property in Pipe Run Component that acquires from your new line group property:

PRP.PNG

3. Create a PlantDefineCalcProperties prop that combines the prefix with the line tag:

PDFCP.PNG

 

4. Set the layer assignment:

Lay Assign.PNG

 

Result:

result.PNG

 

 

 

 

Message 5 of 8

Anonymous
Not applicable

I have done the steps you have listed and it only changes to the prefix and does not give me the line number.Layer_color_settings.JPGPipeRunComponent.JPGPlantDefineCalcProperties.JPGProperties.JPG

0 Likes
Message 6 of 8

Anonymous
Not applicable

I have done the steps you have listed and it only changes to the prefix and does not give me the line number.

0 Likes
Message 7 of 8

jabowabo
Mentor
Mentor
Accepted solution

Change your PLANTDEFINECALCPROPERTIES prop to have single quotes instead of double. Also, the screenshot also shows unassigned line tag.

Message 8 of 8

Anonymous
Not applicable

PERFECT - THANKS!

0 Likes