4.3.1. Requirements for Custom Python Parts

4.3.1. Requirements for Custom Python Parts

For a straight (run) element to be compatible with automatic routing, the custom Plant 3D Python part must meet the following requirements:

  1. Length Parameter: The part must have a total length parameter named L.
  2. Group: The part's group must be set to "Pipe".
  3. Set Points: The Python script must define two set points, with the origin at the start point and the length extending along the positive X-axis:
s.setPoint((0.0, 0.0, 0.0), (-1.0, 0.0, 0.0))
s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))

Once the custom Python part meets these conditions, it can be used with the "Auto Route" function for automatic routing.

BOM and ISO Availability: Python-based components routed in this way are available in the Data Manager like regular Plant 3D components – they appear in the Bill of Materials and can be output on isometric and orthogonal drawings.