pycatia.cat_plant_ship_interfaces.psp_build_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_build_part.PSPBuildPart(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectPspBuildPartRepresents Interface to create and modify a part.Role: To build and define a part.- change_part_type(i_ref_part: Product, iu_part_type: str, u_part_number: str) Product ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ChangePartType(Product iRefPart,CATBSTR iuPartType,CATBSTR uPartNumber) As ProductReturns the part after changing the part type of an existingpart.Parameters:iReferencePartReference Product in CATPart document to modify.iPartTypeNew part class type.iPartNumberNew Part number.Returns:New reference Product in CATPart documentExample:Dim objThisIntf As PspBuildPartDim iRefPart As ProductDim iuPartType As CATBSTRDim uPartNumber As CATBSTRDim oNewRefPart As Product…Set oNewRefPart= objThisIntf.ChagePartType (iRefPart, iuPartType,uPartNumber )
- list_part_parametric_attributes(i_ref_part: Product) PSPListOfBSTRs ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListPartParametricAttributes(Product iRefPart) AsPspListOfBSTRsReturns the part parametric attribute names.Parameters:iRefPartReference Product in new CATPart document.Returns:List of parametric attribute names.Example:Dim objThisIntf As PspBuildPartDim iRefPart As ProductDim oLAttributeNames As PspListOfBSTRs…Set oLAttributeNames = objThisIntf.ListPartParametricAttributes (iRefPart)
- Parameters:
i_ref_part (Product) –
- Return type:
- new_part(iu_part_type: str, u_part_number: str) Product ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func NewPart(CATBSTR iuPartType,CATBSTR uPartNumber) As ProductCreate a new part.Parameters:iPartTypePart class type.iPartNumberPart number.Returns:Retruns Reference Product pointer in new CATPart document.Example:Dim objThisIntf As PspBuildPartDim iuPartType As CATBSTRDim uPartNumber As CATBSTRDim oNewRefPart As Product…Set oNewRefPart = objThisIntf.NewPart (iuPartType, uPartNumber)
- Parameters:
iu_part_type (str) –
u_part_number (str) –
- Return type:
- set_part_parametric_attributes(i_ref_part: Product, i_l_attribute_names: PSPListOfBSTRs) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPartParametricAttributes(Product iRefPart,PspListOfBSTRs iLAttributeNames)Sets the part parametric attribute names.Parameters:iRefPartReference Product in new CATPart document.iLAttributeNamesList of parametric attribute names.Example:Dim objThisIntf As PspBuildPartDim iRefPart As ProductDim iLAttributeNames As PspListOfBSTRs…objThisIntf.SetPartParametricAttributes iRefPart,iLAttributeNames
- Parameters:
i_ref_part (Product) –
i_l_attribute_names (PSPListOfBSTRs) –
- Return type:
None