custom property to MLeader Text

custom property to MLeader Text

Alexrose1942
Advocate Advocate
375 Views
3 Replies
Message 1 of 4

custom property to MLeader Text

Alexrose1942
Advocate
Advocate

i want to add a custom property that work like an "if" function which will be used for piping label 

example : if pipe diameter=273.1 then mleader will show Ø10'' as a label. 

there will be different pipe sizes. 

 

im a newbie so a simple example will be great. ill try to add all diameters and post it back here so others can use.

 

Thanks 

0 Likes
376 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

I hope this helps:

 

SyntaxEditor Code Snippet

If Split(Spec, " ")(0) = "TR" Then
    iProperties.Value("Custom", "Description") = "=<PipeOD> x <PipeOD> x <PipeLength1> LG. HEADER (GRAIN #4, 7#)"
Else
    iProperties.Value("Custom", "Description") = "=PIPE <PipeSize> NPS x <PipeTHK> WALL x <PipeLength1> LG. (GRAIN #4, 7#)"
End If

 

 pipe.JPG

0 Likes
Message 3 of 4

Anonymous
Not applicable

Here is the part file with code in it. I would suggest making it a content center part. 

 

content.JPG

0 Likes
Message 4 of 4

Alexrose1942
Advocate
Advocate

I'm using pipes in Tube and Pipe Environment, its should be something more simple than this.

 if the outer diameter of pipe equal 168.3(mm) then the custom property can show Ø6'' with a multileader. 

 

 

0 Likes