Skip to main content

Use Line Components

Components such as pipes and cables have their own parameters and are naturally arranged along a route. Displaying this type of component as a line can make the model more compact, and you can also directly see the two endpoints it connects.

A linear component looks like a wire, but is still a component in its own right. After selecting, you can edit the component name, business parameters, and port labels, and will also participate in verification and simulation as part of the model.

Why Is the Linear Component Not an Ordinary Connection?​

Comparative ItemLinear ComponentNormal Connection
Represented contentRepresents specific components such as pipes and cablesIndicates the connection relationship between two ports
parametersHas its own component parameterNo independent business parameters
endpointFixed the two physical ports corresponding to the componentConnect compatible ports according to current topology rules
port labelYou can set the labels of the two ports separatelycomponent port label is not provided
Connect with other linesEndpoints can only be attached to compatible ports of ordinary componentsPorts or existing connections can be connected according to normal topology rules

Only the component of There Are Exactly Two Physical Ports can use the linear form. Whether it is displayed in line style by default is determined by the component configuration in the current workspace.

The difference between ordinary connections and linear components
The difference between ordinary connections and linear components

Add Line Component from Component Library​

Some dual-port components are displayed directly as line icons in the component library. The addition method is the same as a normal component:

  1. Find the required component in the component library on the left.
  2. Drag the component to the desired location on the canvas.
  3. After releasing the mouse, the page will generate a horizontal line component near the landing point.
  4. Drag the two ends and connect them to the compatible ports of the common component.

The newly added line component can temporarily not connect the endpoints. When there is no dedicated line icon, only the line segment, component name and port label may be displayed on the canvas, which does not affect its use as a component.

If the component displays as a normal icon after being dragged in, it means that its current default shape is not linear. As long as the component has two physical ports, you can still execute Format through the Format panel on the right after adding it.

Connect Linear Components to Other Components​

A linear component has a starting point and an end point, and the two ends correspond to the two physical ports of the component. When connecting:

  1. Select the line component and confirm the positions of both ends.
  2. Drag an endpoint close to the port of the target common component.
  3. Release the mouse after a connectable prompt appears on the target port.
  4. Connect the other end in the same way.
  5. Select the linear component and check whether both ends are accurately attached to the port.

The starting point can only connect to ports that are compatible with the first physical port type, and the end point can only connect to ports that are compatible with the second physical port type. If one end cannot snap but the other does, it may be that the two physical ports are of different types or orientations. Please check the usage of both ends of the component.

Connection target restrictions

The endpoints of a linear component can only be connected to compatible physical ports of ordinary components, not to ordinary wires, other linear components, or declarative wires. Ordinary connections cannot use the linear component itself as the connection target.

Move and Resize Line Components​

Choose different movement methods according to your needs:

  • Drag the line segment or the area where the line icon is located to move the entire line component;
  • Drag the endpoint to adjust the length of the line segment or change it to another compatible port;
  • When the endpoints are connected, the adsorption relationship should be checked again after moving to avoid judging whether the connection is successful by just looking at the line position;
  • When you need to change the line direction, you can adjust Format on the right Format panel.

Line icons follow the direction of the line, and component names and port labels are also laid out along the line. When the model is dense, it is recommended to adjust the positions of the two endpoints first, and then set the routing and line width to reduce line overlap.

Convert Between Linear and Normal Forms​

Ordinary forms are displayed as "non-linear" in the Component Form area of the current interface. The conversion portal will only appear if a dual-port component that supports line display is individually selected.

Convert Ordinary Component to Line Type​

  1. Single-select a plain component with two physical ports.
  2. Open the Format tab on the right.
  3. Confirm that the current form is Non-Linear in Component Form.
  4. Click on Linearization.

After conversion, component IDs, component labels, parameter values, and port labels are preserved. The linear component will be built near the location of the original component.

Need to reconnect after conversion

When an ordinary component is converted to a linear component, the ordinary connections originally connected to the two ports of the component will be removed, and the two ends of the new linear component are temporarily unconnected. After conversion, you must re-adsorb the two endpoints to the correct ports and check the complete topology again.

Convert Linear Component to Normal Component​

  1. Select the line component individually.
  2. Open the Format tab on the right.
  3. Confirm that the current form is Linear in Component Form.
  4. Click on Convert to Non-Linear.

After conversion, the normal component will appear near the midpoint of the original line segment and be placed in the direction of the line segment from the starting point to the end point. Connected endpoints will be connected back to the corresponding port through ordinary connections; unconnected endpoints will not generate a connection.

The form transformation will be recorded in the undo history as an operation. If the conversion result does not meet expectations, you can immediately cancel it and check the original connection relationship again.

Modify Parameters and Port Labels​

Linear components share the same set of parameters as ordinary components:

  1. Select the line component individually.
  2. Open the Parameters tab on the right.
  3. Modify the display name in Component Tag.
  4. Set component parameters in each parameter group.
  5. Expand Port Label and set the labels of the two physical ports respectively.

Port labels are more than just canvas annotations. Models can establish logical connections based on the same port label, so it should be filled in according to the naming rules of the current model. Port labels do not change the physical port type, nor do they allow incompatible endpoints to snap to each other on the canvas.

Whether some ports are available will vary depending on the parameters. When the enabling conditions of a port are no longer met, the connected corresponding endpoint will be released to the current location; even if the conditions are restored later, manual reconnection is required. After modifying the parameters that affect the port status, you should immediately check the connections at both ends.

For the detailed filling method of parameters, please refer to Configure Component and Global Parameters.

Adjust Line and Text Appearance​

After selecting the line component, open the Format tab on the right, and you can see the following settings of the current interface:

  • Component Form: Check whether the current state is linear or non-linear, and perform form conversion;
  • Text: Adjust the font size and unit of component labels and port labels;
  • Connections: Set line type, line width, color and routing type.

Line types support solid and dashed lines. Route types support None, Manhattan and Orthogonal; different routes will produce different routing effects when the endpoint locations are complex. After setting, you should zoom out of the canvas to view the whole, and confirm that the lines do not block other components or cause misunderstanding of the connection relationship.

Linear pipe and format panel on the right
Linear pipe and format panel on the right

Whether the icon is displayed in the middle of the line segment is determined by the component's line icon configuration and the current parameters. Without an icon, line components are still identifiable by the line segment, component name, and port label.

Usage Restrictions​

  • Only components with exactly two physical ports can convert between linear and non-linear;
  • The two endpoints correspond to fixed physical ports, and the uses of the endpoints cannot be interchanged at will;
  • Line endpoints can only be attached to compatible ports of common components;
  • Ordinary connections and other linear components cannot be connected to linear components;
  • Parameter changes may disable ports and release connected endpoints;
  • When an ordinary component is converted to a line type, the original ordinary connection will not be automatically converted into an endpoint connection;
  • Appearance settings only change the display mode and do not replace port connections and model verification.

Frequently Asked Questions​

Why Is the Linear Icon Not Displayed in the Component Library?​

The component may support line display, but the default form is still a normal component. First drag it to the canvas, select it individually and open the Format tab; if the Linearization button appears, you can manually convert it.

Why Can’T I See the Linearize Button?​

First make sure that only one component is selected. The conversion entry only appears for components that have exactly two physical ports and support linear display. When multiple components are selected, or a component whose number of ports does not meet the conditions is selected, this entry will not be displayed.

Why Can’T Endpoints Be Adsorbed?​

The target must be a compatible physical port on a normal component. Check that you dragged to the port itself, that the port is available, and that the current endpoint corresponds to the correct physical port. Ordinary wires, other line components, and declarative wires cannot be targeted.

Why Do the Original Connections Disappear After Linearization?​

This is normal behavior for the current form transition. The original ordinary connection will be removed, and the two endpoints of the linear component need to be reconnected. If a conversion is performed accidentally, it can be undone immediately.

Why Is the Endpoint Disconnected After Modifying Parameters?​

Some components will determine whether the port is available based on parameters. When parameter changes invalidate port conditions, the corresponding endpoint will be automatically released. After confirming that the parameters are correct, manually connect the endpoint back to the compatible port.

Why Is There No Component Icon in the Middle of the Line Segment?​

The current component may not be configured with a dedicated line icon, or the icon may not be displayed temporarily due to parameter conditions. The line component itself still exists as long as the line segments, component names, and parameters can still be selected normally.

Why Is the Line Wrapping Method Inappropriate?​

Select the line component and switch the routing type in the Format area of the Connections tab. If necessary, adjust the positions of both ends and surrounding components before selecting None, Manhattan, or Orthogonal routing.