How can I create a ECExpression that take de pipeline diameter?

Hello Masters of OP  ; )

I´ve to create a way to put in a field the name of my pipe system.

the tag names here are formed by:

PRODUCT: PpPp

NUMBER: 1234

SPECIFICATION: SSS

DIAMETER: DD

and, if existis, INSULATION: Ii

For example:

A pipe of cooling water (WaCl), with the number 2325, in the carbon steel specification (CS2), with 20 inches of nominal diameter and not isolated.

This results in: WaCl-2325-CS2-20".

ok, well I belive that is an possible solution:

this.SERVICE & "-" & this.NUMBER & "-" & this.SPECIFICATION & "-" & this.NOMINAL_DIAMETER& "-" & "´´"

to be edited in the EcExpression in the NAME properties of the Iso Sheet class (i want to show this on the isometric sheet).

Well, obviously, its not work at all...

so... I need some help, please...

and oh! thanks a lot! 

Parents Reply Children
  • Hello Dennis, 

    This is mainly because RegEx only validate the properties which are available on its class. Here SPECIFICATION is not available, hence missing. 

    For any property to cascade from different hierarchy to certain class, require different expressions. Try below expression to get SPECIFICATION to be applied on ISO_SHEET class. 

    this.LINENUMBER & "-iso-" & this.NUMBER & "-" & this.GetRelatedInstance("PIPING_NETWORK_SYSTEM_HAS_ISO_SHEET:1:PIPING_NETWORK_SYSTEM").SPECIFICATION

    HTH,

    Regards,

    Rahul Kumar

    Product Engineer – Global Technical Support | Community Moderator