Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

custom property to MLeader Text

Alexrose1942
Advocate

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
Reply
320 Views
3 Replies
Replies (3)

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

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

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