PlantWise Help

User Inline Class Editor

Both the New and Edit commands in the User Inline List opens the User Inline Class Editor. New opens an empty editor, while Edit opens the editor for the selected inline. This dialog is where inlines are named, geometry is described, attributes are defined, and attribute rules are created.

User Inline Class Editor

As with many other PlantWise dialogs, the User Inline Class Editor has the following controls:

SettingDescription
File menu

You can Save Library and Close the dialog from this menu. It is important to save the Equipment Library, as changes to it are not be saved with a model. Also, closing the dialog with un-Accepted changes loses those changes.

Highlighted sections A right mouse click in the highlighted sections opens up specialized pop up menus. Those menus are covered with the specific section of the dialog.
Accept Changes to a UDI are not written to the Equipment Library until this button has be clicked. The button is disabled until a change has been made.
Close Closes the dialog. Closing the dialog with un-Accepted changes loses those changes.
Class Name The Class Name field is where the UDI name is entered. This name ise used to store the class in the User Equipment library and cannot contain spaces ( ), colons (:), or commas (,).

The Class Name is a list box that allows you to view all of the defined UDIs without going back to the Inline Class List. If you change the current UDI in the editor, all changes made to the previous inline since the last Accept are lost.

For new classes
  • Copy existing values – if you want to create a new inline class similar to the current class, you can select the Copy existing values radio button after entering the new name of the inline. This button copies the current geometry description and attributes to the new inline. It is important that you select this option if they want to save the specialized geometry and attributes of the current class to the new class of inline.
  • Start with default values – If the Start with default values button is selected, reverts the geometry description and attributes to the PlantWise default values.
Geometry Description This is where the geometric description of the Inline is defined using the same language as for Defining Equipment Geometry rules. The only components that can be referred to in the geometry description are the inline (inline.<attribute>) and the pipeline (pipeline.<attribute>). See "User Inline Attributes " for a full list of user inline attributes.
Picture File Reference When checked, it means there is an image file for this inline you can use as reference. The file name is entered in the Filename filed that appears when the checkbox is checked. The picture files must be in either the pictures folder of the PlantWise installation folder or the pictures folder under the current project folder. File names are saved with the UDI so that it can be viewed in future sessions
Show Opens a dialog that shows the Picture File Reference.
Attributes list UDIs have seven default attributes that must be defined and may have as many user defined attributes as necessary.
All attributes are listed in the Attributes List box. There are five columns in the list box that display the following information:
  • The first column – indicates whether the attribute is a default attribute or not with an asterisk (*) next to the default attributes.
  • Attributes – contains the attribute name. Attribute names cannot contain spaces ( ), colons (:), or commas (,).
  • Value – is for the default value of the attribute. If there is no rule for the attribute, a value is required.
  • Rule – shows the rule for calculating the value (optional). Attribute Rules can range from simple equations to complex expressions that include table look ups. Attribute rules can refer only to inline and pipeline attributes.
    To simplify writing attribute rules, a Helper dialog has been implemented. A right mouse click in the Rule field allows you to open the helper dialog.
    • Component Selection – Only pipeline and inline are available here.
    • Attributes – Once a component that has been selected, all of that component’s attributes are available in this field.
    • Expression – The rule expression can be edited in the Expression field.
  • Datatype: displays the data type of the attribute.
    You can select a datatype from the pop up menu that opens with a right mouse click in the Datatype field.
    • Float – a real number containing a decimal point.
    • Integer – an integer.
    • String – a text string.
    • List – a set of values you enter between the parentheses added in the Datatype field. For example, a list for an attribute named color could be (blue green yellow) – spaces between values are required.
    • List from table – you can limit possible values to the contents of a column in a data table using this datatype. In the data type field appears: (<table-name>,<column-name>) and you must fill in the names of the existing data table and column.
    • Distance – a real number whose value is shown in project display units.

Attributes list box

Selecting an attribute displays the current values in the fields below the Attributes List box for editing. A right mouse click in the Attributes List box opens a Swap menu.

The order of attributes can be changed and attributes can be deleted from this menu.
Note: With all Swap functions in PlantWise, the selected attribute trades positions with that of the one above it in the list.
Any changes made in these fields are displayed in the Attributes List box only after the Add button is clicked. If the value in the Name field is unchanged, then edits are be made to the current attribute; however, if the name is different, a new attribute is added to the list.
The default attributes are:
Attribute name Description
User_class_name The name normally displayed to you. It may contain spaces and/or dashes.
Segment_perference Whether the UDI prefers to be placed on a Horizontal, a Vertical, or Either orientated pipe run.
Upstream_downstream_attraction Whether the UDI should be placed relative to its Upstream or Downstream neighbor.
Downstream_spacing Distance in the downstream direction this UDI must be from the next inline component.
Upstream_spacing Distance in the upstream direction this UDI must be from the next inline component.
Length How much length of pipe is removed for the placement of the inline. This value cannot be zero, but it can be very small.
Cad_drawing_level The CAD level on which the UDI is drawn.
Placeable If the inline is a placeable or slideable component (see Manipulating Inlines for more on placeable and slideable inline components).
Export_code The string identifier for this class of user inline for pipeline export reports.

Angled Valves

PlantWise also has the capability to place a user defined inline at a horizontal elbow.

If you want to create an angled inline component, there are two additional attributes that need to be defined:
Attribute name Description
Angle_valve_dir The direction (Left or Right) of the angle of the component along the pipeline’s flow direction.
Angle_valve_type If there is a tee directly upstream of the component, it will place next to the valve if the angle_valve_type is set to 3-way. If an upstream tee does not need to be attracted to the valve, then the angle_valve_type should be set to 2-way.
Router placement of an angled component requires that the component’s Placeable attribute to be set to Yes.