Add the custom property to the applicable view definitions - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

For the new property to be able to appear in a register, you must edit the view definition that contains the property definitions. While defining the properties, make sure the display name of the properties does not contain the following special characters:!,~,#,^,_,.,+,|\,[],’,;,<>,?,$.

The Instrument Handover Register contents are defined by the MTRInstrument view definition, so that is the one that must be updated for this example. You must also add the custom property definition to the authoring view definition.

  1. In the SmartPlant Schema Editor, click Tools > Another Schema > Set Active Schema File.

  2. In the Set Active Schema File dialog box, select SCHEMA_MTRSPONonIntegration.xml, which is the XML file that contains the view definition used by the register we want to update. Click OK.

  3. To find a list of existing view definitions, modify the tree to include view definitions by clicking View > Schema (Active), and selecting ViewDef in the Only Classes box. Click OK.

  4. Under ViewDefs in the tree view, find and right-click the CDW view definition to edit it. In this example, right-click MTRInstrument.

  5. Click the Edit command for the view definition.

    SHARED Tip The command name includes the name of the object, so in this example, the command is named Edit MTR Instrument.

  6. In the Edit View Definition dialog box, go to the Layout tab, and maximize the dialog box for easier viewing.

  7. In the top right section of the dialog box, select the primary interface of the type of object on the register you are updating. Because this example is updating the Instrument register, select +ISPFCDWTagInstrument.

  8. In the bottom right section of the dialog box, find your new property and select the check box beside it. In this example, the custom property was named ConsolidatedAcmeStatus.

    While defining the property, make sure the display name of that property does not contain the following special characters:!,~,#,^,_,.,+,|\,[],’,;,<>,?,$.

  9. Click OK.

  10. Under ViewDefs in the tree view, find and right-click the authoring view definition to edit it. In this example, right-click MTRAuthInstrument.

  11. Click the Edit command for the view definition.

    SHARED Tip The command name includes the name of the object, so in this example, the command is named Edit MTR Authored Instrument.

  12. In the Edit View Definition dialog box, go to the Layout tab, and maximize the dialog box for easier viewing.

  13. In the top right section of the dialog box, select the primary interface of the type of object on the register you are updating. Because this example is updating the Instrument authoring view definition, select +IMTRAuthInstrument.

  14. In the bottom right section of the dialog box, find your new property and select the check box beside it. In this example, the custom property was named AuthoredAcmeStatus.

  15. Click OK.

  16. Click File > Save > Schema File.