pycatia.cat_plant_ship_interfaces.psp_place_part¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.cat_plant_ship_interfaces.psp_place_part.PSPPlacePart(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectPspPlacePartRepresents the Place physical parts object.Role: To place physical parts.- property error_message: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ErrorMessage() As CATBSTR (Read Only)Returns the message associated with the last error.Role: If an error occurs when placing or routing a part, a message isassociated with the error.Returns:The error message associated with the last error. Null if no error.
- Return type:
str
- place_part_in_space(iu_standard: str, iu_function_type: str, ipi_reference_part: AnyObject, ipi_parent_product: AnyObject, ipi_logical_line: AnyObject, iu_placed_part_id: str, i_up_direction: PSPListOfDoubles, i_horizontal_orientation: PSPListOfDoubles, i_position: PSPListOfDoubles) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func PlacePartInSpace(CATBSTR iuStandard,CATBSTR iuFunctionType,AnyObject ipiReferencePart,AnyObject ipiParentProduct,AnyObject ipiLogicalLine,CATBSTR iuPlacedPartID,PspListOfDoubles iUpDirection,PspListOfDoubles iHorizontalOrientation,PspListOfDoubles iPosition) As AnyObjectPlaces a part in space.Role: The part instance is placed given its reference with respect to itsparent product. The Part Placement engine will not perform any of it’s normalchecks for interactions with nearby parts. Part is placednon-spec.Parameters:iuStandardThe standard for application attribute values.iuFunctionTypeThe type of function (e.g. block valve, branch). Used when nofunction is specified but functional part placement is required.ipiReferencePartThe reference part from which to derive the instance part.ipiParentProductThe parent product (in the design model) for the new instance part.ipiLogicalLineThe logical line (e.g. piping line) which contains the instancepart.iuPlacedPartIDThe name of the placed part in the design model. Null uses thestandard ID generated by the part placement engine.iUpDirectionThe up direction for the placed part. The list has three valueswhich represent the x, y and z values of a unit direction vector. Value isrelative to ipiParentProduct.iHorizontalOrientationThe orientation of the part in “horizontal” plane (planeperpendicular to up direction). Must be perpendicular to iUpDirection. The listhas three values which represent the x, y and z values of a unit directionvector. Value is relative to ipiParentProduct.iPositionThe position of the part. The list has three values which representthe x, y and z values of a position in space. Value is relative toipiParentProduct and expressed in millimeters.Returns:The placed instance part.
- Parameters:
iu_standard (str) –
iu_function_type (str) –
ipi_reference_part (AnyObject) –
ipi_parent_product (AnyObject) –
ipi_logical_line (AnyObject) –
iu_placed_part_id (str) –
i_up_direction (PSPListOfDoubles) –
i_horizontal_orientation (PSPListOfDoubles) –
i_position (PSPListOfDoubles) –
- Return type:
- route_string_part_in_space(iu_standard: str, iu_function_type: str, ipi_reference_part: AnyObject, ipi_parent_product: AnyObject, ipi_logical_line: AnyObject, iu_placed_part_id: str, i_first_point_up_direction: PSPListOfDoubles, ipi_list_points: PSPListOfObjects, i_list_bend_radii: PSPListOfDoubles) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func RouteStringPartInSpace(CATBSTR iuStandard,CATBSTR iuFunctionType,AnyObject ipiReferencePart,AnyObject ipiParentProduct,AnyObject ipiLogicalLine,CATBSTR iuPlacedPartID,PspListOfDoubles iFirstPointUpDirection,PspListOfObjects ipiListPoints,PspListOfDoubles iListBendRadii) As AnyObjectRoutes a string part.Role: The string part instance, such as a pipe, a tube, or a duct, isplaced given its reference with respect to its parent product. The PartPlacement engine will not perform any of it’s normal checks for interactionswith nearby parts. Part is placed non-spec.Parameters:iuStandardThe standard for application attribute values.iuFunctionTypeThe type of function (e.g. Block valve, branch). Used when nofunction is specified but functional part placement is required.ipiReferencePartThe reference part from which to derive the instance part.ipiParentProductThe parent product (in the design model) for the new instance part.ipiLogicalLineThe logical line (e.g. piping line) which contains the instancepart.iuPlacedPartIDThe name of the placed part in the design model. Null uses thestandard ID generated by the part placement engine.iFirstPointUpDirectionThe up direction of the first point of the string part. The listhas three values which represent the x, y and z values of a unit directionvector. Value is relative to ipiParentProduct.ipiListPointsThe list of points that describe the path of the string. If thestring part is stretchable, the list should contain two points.iListBendRadiiThe list of bend radii at each corner of the string part. This listis ignored if the string part is stretchable. This list is only for interiorpoints and so should have two less elements than ipiListPoints. (for example,if ipiListPoints has six points, iListBendRadii should have four radii values).Values are in milimeters.Returns:The routed string part.
- Parameters:
iu_standard (str) –
iu_function_type (str) –
ipi_reference_part (AnyObject) –
ipi_parent_product (AnyObject) –
ipi_logical_line (AnyObject) –
iu_placed_part_id (str) –
i_first_point_up_direction (PSPListOfDoubles) –
ipi_list_points (PSPListOfObjects) –
i_list_bend_radii (PSPListOfDoubles) –
- Return type: