Quantcast
Channel: OpenPlant | AutoPLANT Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4153

Re: OPPID – How to get the PipeRun Insulation property to the BASE_PIPE_LINE_ANNOTATION and to the Line list.

$
0
0

Hello Sanrise,

The proper procedure to add Insulation Type and Insulation Thickness to a Pipeline Annotation class is as follows:

NOTE - I added this functionality to the PIPE_LINE_ANNOTATION_ALT2 class.

  • Edit the PIPE_LINE_ANNOTATION_ALT2 class by adding INSULATION and INSULATION_THICKNESS to the properties for this class. NOTE that all properties used by the Annotation classes come from the RUN and not the line. This is by default and to get LINE properties you would need to prefix the property name with "PIPELINE_" - this is better covered in a different post. ALSO NOTE - the INSULATION_THICKNESS property is a TypeName of double. See both properties below.

           

 

          

 

  • Edit the TEXT property on the PIPE_LINE_ANNOTATION_ALT2 class by making the ECExpression an IIF statement. The statement reads as follows - IIF(this.INSULATION_THICKNESS = "", this.PIPELINE_NAME, this.PIPELINE_NAME & "-" & this.INSULATION & "-" & this.INSULATION_THICKNESS). This means if the INSULATION_THICKNESS property is blank or zero then only show the PIPELINE_NAME otherwise if INSULATION_THICKNESS has a value greater than zero then show PIPELINE_NAME - INSULATION - INSULATION_THICKNESS. See below for the ECExpression. Note the separator between the parts of the expressin is a COMMA - after INSULATION_THICKNESS = "" is a comma and after this.PIPELINE_NAME is a comma.

           

See the results of the new changes below - both RUNS are in the same LINE but one has insulation and one does not.

          

I hope this helps,

Tony DeRosa

Bentley Plant

 


Viewing all articles
Browse latest Browse all 4153

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>