|
|
|
typedef struct pro_lnstk
{
ProName name;
ProAssembly owner;
} ProLnstk; |
|
|
|
|
typedef enum
{
PROLNSTKPRM_SINGLE,
PROLNSTKPRM_MULTIPLE
} ProLnstkParamType;
typedef struct _pro_lnstk_param_memb_
{
ProName name;
ProParamvalue value;
} ProLnstkParamMemb;
typedef struct _pro_lnstk_param_
{
ProName name;
ProLnstkParamType param_type;
union {
ProParamvalue value;
ProLnstkParamMemb *members;
} lnstk_param_value;
} ProLnstkParam;
• | ProLnstkPipeSection—Specifies the type of the pipe section as Hollow or Solid. |
• | ProLnstkPipeShape—Specifies the type of the pipe shape as Flexible or Straight. |
• | ProLnstkPipeCrnrType—Specifies the type of the pipe corner as Bend, Fitting, or Miter Cut. Corners are not set for flexible pipes. |
• | ProLnstkPipeXSection—Specifies the cross section of the pipe as Circular or Rectangular. |
• | OD—Outer diameter of the pipe. |
• | WALL_THICKNESS—Wall thickness of the pipe. |
• | RECTANGULAR_HEIGHT—Height of the rectangular pipe. |
• | RECTANGULAR_WIDTH—Width of the rectangular pipe |
• | RECTANGULAR_ANGLE—Rotate angle of the pipe solid part around its reference entity. The angle is relevant only in square pipes. |
• | WALL_THICKNESS—Wall thickness of the pipe. |
|
|
|
|
|
|
|
• | model—Specifies the model where the pipeline feature must be created. The model must be Specfication-Driven, or the configuration
option piping_design_method must be set to spec_driven. The configuration option piping_design_method enables you to set the design mode for the piping project. To activate the Spec-Driven design mode set the value of the configuration
option to spec_driven. In this mode, the piping systems are created using the specified specifications. For Non Spec-Driven mode, set the value
to non_spec_driven. In this mode, the piping systems are created manually without using project-specific data. To work in the User-Driven mode,
set the value to user_driven. This mode enables you to switch between Spec-Driven and Non Spec-Driven piping design modes. You can convert existing assemblies
to required design mode at any time in the design process.
|
• | spec_params—Specifies the specification parameters. These parameters are defined in the structure ProPipingSpecParams. User must set the parameter values in the structure based on the values defined in the auto-selection file. Refer to the Creo Parametric Piping Help for more information on the auto-selection files. |
• | Mnemonic—Specifies the fluid or piping system. If the value is specified as NULL, then the default mnemonic defined in the Specification Directory file is used. The path and name of the Specification Directory file are set in the configuration option piping_spec_dir_file. If you pass an empty string, then no mnemonic value is assigned to the pipeline feature. |
• | number—Specifies a number which uniquely identifies the pipeline. If the value is specified as NULL or an empty string, then no number is assigned to the pipeline feature. |
• | insulation—Specifics the insulation for the pipeline. If the value is specified as NULL, then the default insulation defined in the Specification Directory file is used. The path and name of the Specification Directory file are set in the configuration option piping_spec_dir_file. If you pass an empty string, then the pipeline feature is created without insulation. |
• | CreateSubAsm—Specifies if the pipeline must be created as a new subassembly. The pipeline subassembly is created using the template model defined in the configuration option pipeline_start_assembly_name. |
• | SubAsmName—Specifies the name of the pipeline subassembly. If you pass the value of the argument as NULL or an empty string, then the name of the pipeline subassembly is generated based on the configuration option pipeline_assembly_name_format. |
• | csys_reference—Specifies a coordinate system for the placement of the pipeline subassembly. If the value is specified as NULL, then the coordinate system of the model is used to place the subassembly. |
• | model—Specifies the model where the pipeline feature must be created. The model must be Specfication-Driven, or the configuration
option piping_design_method must be set to spec_driven. The model must be enabled for schematic-driven modeling. The configuration option piping_schematic_driven must be set to yes. The configuration option piping_schematic_driven enables or disables the schematic-driven modeling mode for a piping project. The valid values are yes and no.
|
• | xml_file—Specifies the path to the XML file which contains schematic information for pipelines. |
• | pipeline_label—Specifies the pipeline label for the XML file. The properties SPEC, SIZE, SCHEDULE, MNEMONIC, NUMBER, and INSULATION associated with a pipeline label are updated from the XML file. The property GRADE, that is, the material code is updated based on the other specification parameters. The property CATEGORY has its value set as PIPE. |
• | insulation—Specifics if the pipeline must be created with insulation. If the value is specified as TRUE, then the pipeline is created with insulation based on the parameter INSULATION defined in the XML file. |
• | CreateSubAsm—Specifies if the pipeline must be created as a new subassembly. The pipeline subassembly is created using the template model defined in the configuration option pipeline_start_assembly_name. |
• | SubAsmName—Specifies the name of the pipeline subassembly. If you pass the value of the argument as NULL or an empty string, then the name of the pipeline subassembly is generated based on the configuration option pipeline_assembly_name_format. |
• | csys_reference—Specifies a coordinate system for the placement of the pipeline subassembly. If the value is specified as NULL, then the coordinate system of the model is used to place the subassembly. |
• | model—Specifies the model where the pipeline feature must be created. The model must be Non Specfication-Driven. |
• | lnstk—Specifies the line stock feature. The line stock feature must have the specified model as its parent. |
• | pipeline_name—Specifies the name of the pipeline feature. |
|
|
|
|
|
|
• | p_comp_path —Specify the path from the top model to the pipeline's model by usingProAsmcomppath. |
• | pipeline —The feature handle to the pipeline feature. |
• | The extension must have a continuous direction of flow across the branch. |
• | Of all such possible extensions, the one chosen is the one that gives the smallest change of direction across the branch. |
• | Terminator—The end of a pipeline, where it either opens or connects to an item outside the pipeline, described by the opaque object ProPterminator. |
• | Junction—The item that describes how the pipeline branches, described by the opaque object ProPjunction. |
• | Series—A non branching sequence of pipeline objects, described by the opaque object ProPseries. |
|
|
|
|
|
|
|
|
|
|
|
|
• | Segment—A single pipe segment, either bent or straight. Can only belong to a series. |
• | Fitting—An assembly component that connects two or more pipeline segments. Can belong to a Series (if it connects two segments) or a Junction (if it connects more than two segments). |
• | Stubin—A datum point that defines the location where two or more pipeline segments connect directly without a fitting. Can only belong to a Junction. |
• | Selection—An object that contains a ProSelection describing the item a pipeline terminator connects to. Can only belong to a Terminator. |
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_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:
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 Creo Parametric 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.
|
• | 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. |
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_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.
|