Custom Attributes Example
If a user wants to replace Trimmed elbows with Pipe Bends, use the following procedure to define the custom attribute.
- Launch the Class Editor (included with the OpenPlant Project Administrator install) and open the following schemas:
- In the OpenPlant3D.01.04 schema, navigate to Classes\Plant Base Object\Named Item\Device\Piping Component\Pipe Elbow\Pipe Elbow Trimmed node.
- Click on the Properties tab and select the Trim_Angle property.
- Click the Custom Attributes icon and select Add/Remove from the menu.
- In the dialog, select the PropertyMappingForReplace attribute and click the down arrow to add it to the Applied Custom Attributes section as shown below:
- Click OK to add the new attribute for the Trimmed Elbow.
- Right click on the Mapped To field in the new attribute section and select Add Element.
- Add PIPE_BEND|ANGLE to the newly created elements.
- Save the schema then restart OpenPlant Modeler .