Adds/updates the specified property in the PCF.
PCF ADD-PROPERTY MATERIAL-LIST INCLUDE
PCF ADD-PROPERTY RATING
You can use the keyword FILENAME to set the attribute to the filename of the PCF being processed.
PCF ADD-PROPERTY ATTRIBUTE10 FILENAME
Optionally, you can add/ update the property by component type.
PCF ADD-PROPERTY RATING COMPONENT FLANGE
The ADD-PROPERTY command also supports the EVALUATE expression. The expression may contain any of the following macros
-
$P.attribute$
-
$C.attribute$
-
$PCFTYPE$
where attribute is the name of the PCF attribute, P identifies the pipeline, C indicates the current component, and PCFTYPE is the current component type, such as flange, valve, or weld.
PCF ADD-PROPERTY COMPONENT-ATTRIBUTE4 EVALUATE '"$P.ATTRIBUTE3$ & LEFT("$C.ATTRIBUTE10$",2)' WHERE '"$PCFTYPE$" = "FLANGE"'
-
Enclose the 'expression' within single quotes ( ' ).
-
The expression can also include VBScript-supported functions, such as Left() or Instr().