Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Auto-naming Utility Enhancement

  • Last UpdatedMay 17, 2023
  • 1 minute read

This utility has been enhanced to allow the formulation of a name to use an IFTRUE statement, which is a PML1 facility. For example, if you wish to make up a name based on attributes of a PIPE, you can use the following PML2 autonaming rule:

!!ce.fluref.namn & '-' & !!ce.pspec.namn & '-' & !!ce.ispec.namn & '-' & !index

However this rule will fail if any of the attributes (FLUREF, PSPE, ISPE) have not been set. You can now use the IFTRUE function in PML1 form to do the same by using the following rule:

iftrue(badref(fluref) ,'unset' , namn of fluref) & '-' & iftrue(badref(pspec) ,'unset' , namn of pspe) & '-' & iftrue(badref(ispe) ,'unset' , namn of ispe) & '-' & !index

Note:
The whole ‘Format’ must be PML 1, concatenated with the ‘&’. It is not possible to mix PML1 and PML2 functions. The result of this rule can be seen below:

The FLUREF and ISPE have not been set but the PSPE is set to /A3B, so the resultant name is unset-A3B-unset-1.

Related Links
TitleResults for “How to create a CRG?”Also Available in