User's Guide > Production Applications: Piping > Connecting Pipeline Segments
Connecting Pipeline Segments
You can connect disconnected segments of the same pipeline or entry ports using the pipe connect feature.
The element tree for the pipe connect feature is documented in the header file ProPipConnect.h and is shown in the following figure:
Figure 219. Element Tree for Pipe Connect Feature
The following table describes the elements in the element tree for the pipe connect feature:
Element ID
Data Type
Description
PRO_E_FEATURE_TYPE
PRO_VALUE_TYPE_INT
Mandatory element. Specifies the type of the feature. The valid value for this element is PRO_FEAT_PIPE_JOIN.
PRO_E_STD_PIPE_LINE_ENV
PRO_ELEM_TYPE_COMPOUND
This compound element defines the pipe options.
PRO_E_STD_PIPE_LINE_ID
PRO_ELEM_TYPE_INT
This element is mandatory, except the pipe route environment.
Specifies the ID of the pipeline.
PRO_E_STD_PIPE_LINE_LNSTK
PRO_ELEM_TYPE_INT
Optional element. Specifies the line stock. The default line stock is taken from the related pipeline.
PRO_E_STD_PIPE_LINE_CORNER_TYPE
PRO_ELEM_TYPE_OPTION
Optional element. Specifies the type of corner for the connect feature. The segments in the connect feature are joined using corners. The types of corner are set in the line stock. The default type of corner is taken from the related pipeline.
The valid values for types of corner are:
PRO_PIPE_CORNER_TYPE_FITTING—Creates sharp corners. You can later add corner fittings. Fitted corners create breaks in a pipeline.
PRO_PIPE_CORNER_TYPE_MITER—Creates a corner by adding a miter cut.
PRO_PIPE_CORNER_TYPE_BEND—Creates each corner by bending the pipe.
PRO_E_STD_PIPE_LINE_BEND_RAD
PRO_ELEM_TYPE_DOUBLE
Optional element. This element is relevant when the corner type is set to PRO_PIPE_CORNER_TYPE_BEND. Specifies the radius of the bend. The default bend radius is taken from the related pipeline.
For Specification-Driven pipelines, the value of bend radius is defined in the line stock, which is related to the pipeline.
PRO_E_STD_PIPE_LINE_MITER_NUM
PRO_ELEM_TYPE_INT
Optional element. This element is relevant when the corner type is set to PRO_PIPE_CORNER_TYPE_MITER. Specifies the number of miter cuts. The default number of cuts is taken from the related pipeline.
For Specification-Driven pipelines, the number of miter cuts is defined in the line stock, which is related to the pipeline.
PRO_E_STD_PIPE_LINE_MITER_LEN
PRO_ELEM_TYPE_DOUBLE
Optional element. This element is relevant when the corner type is set to PRO_PIPE_CORNER_TYPE_MITER. Specifies the length of the miter cut. The default length is taken from the related pipeline.
For Specification-Driven pipelines, the length of the miter cut is defined in the line stock, which is related to the pipeline.
PRO_E_PIPE_CONNECT_FROM_MAIN_REF
PRO_ELEM_TYPE_SELECT
Mandatory element. Specifies the first end of the connect feature.
PRO_E_PIPE_CONNECT_TO_MAIN_REF
PRO_ELEM_TYPE_SELECT
Mandatory element. Specifies the second end of the connect feature.
PRO_E_PIPE_CONNECT_DIMS_SCHEME
PRO_ELEM_TYPE_OPTION
Optional element. Specifies the dimensioning scheme to be used to connect the two ends. The valid values are:
PRO_PIPE_DIM_SCHEME_L1_L2—Sets an offset from both ends of the connect. This is the default option.
PRO_PIPE_DIM_SCHEME_L1_A1—Sets an offset from the first end of the connect and the angle between the first segment and middle segment of the connect.
PRO_PIPE_DIM_SCHEME_L1_A2—Sets an offset from the first selected end of the connect, and the angle between the middle segment and the second end.
PRO_PIPE_DIM_SCHEME_L2_A1—Sets an offset from the second selected end of the connect, and the angle between the first segment and middle segment of the connect.
PRO_PIPE_DIM_SCHEME_L2_A2—Sets an offset from the second selected end of the connect, and the angle between the middle segment and the second end.
PRO_PIPE_DIM_SCHEME_A1_A2—Sets the angles between the end segments and the middle segment of the connect.
Note:
 
If length is missing, then its value is considered as 0. If angle is missing, then the default dimensioning scheme PRO_PIPE_DIM_SCHEME_L1_L2 is used. Here again, if length is missing, then its value is considered as 0.
Refer to the Piping help for more information on the segments and angles created by the connect feature.
PRO_E_PIPE_ROUTE_ENDS
PRO_ELEM_TYPE_COMPOUND
This compound element defines the offset and angle values for the ends in the connect feature.
The two main elements of PRO_E_PIPE_ROUTE_ENDS are:
PRO_E_PIPE_ROUTE_END_FIRST—This compound element specifies the values for the first end of the connect feature.
PRO_E_PIPE_ROUTE_END_SECOND—This compound element specifies the values for the second end of the connect feature.
The following elements are common to the both the compound elements:
Element ID
Data Type
Description
PRO_E_PIPE_ROUTE_END_OPT
PRO_ELEM_TYPE_OPTION
Optional element. Specifies the type of offset. The valid values are:
PRO_PIPE_OFFSET_REFERENCE—Specifies that the offset is defined from an reference object. The reference object can be a datum plane or coordinate system, which is perpendicular to the end axis or coordinate axis.
PRO_PIPE_OFFSET_END—Specifies that the offset is defined from the selected end.
PRO_E_PIPE_ROUTE_END_LENGTH
PRO_ELEM_TYPE_DOUBLE
Optional element. Specifies the value for offset lengths. Depending on the dimensioning scheme, specify the value length_1 for L1 and length_2 for L2. The default value is 0.0.
PRO_E_PIPE_ROUTE_END_REF
PRO_ELEM_TYPE_SELECT
This element is mandatory if the type of offset is set to PRO_PIPE_OFFSET_REFERENCE. Specifies the reference object.
PRO_E_PIPE_CONNECT_END_ANGLE
PRO_ELEM_TYPE_DOUBLE
Optional element. Specifies the value for the segment angles. Depending on the dimensioning scheme, specify angle_1 for A1 and angle_2 for A2. The default value is 0.0.
Note:
 
If the angle is missing, then the dimensioning scheme PRO_E_PIPE_CONNECT_DIMS_SCHEME is changed to PRO_PIPE_DIM_SCHEME_L1_L2. The default values of L1 and L2 are 0.0.
¿Fue esto útil?