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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
PspBuildPart

Represents 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 Product

Returns the part after changing the part type of an existing
part.

Parameters:

iReferencePart
Reference Product in CATPart document to modify.
iPartType
New part class type.
iPartNumber
New Part number.

Returns:
New reference Product in CATPart document

Example:

Dim objThisIntf As PspBuildPart
Dim iRefPart As Product
Dim iuPartType As CATBSTR
Dim uPartNumber As CATBSTR
Dim oNewRefPart As Product
Set oNewRefPart= objThisIntf.ChagePartType (iRefPart, iuPartType,
uPartNumber )
Parameters:
  • i_ref_part (Product) –

  • iu_part_type (str) –

  • u_part_number (str) –

Return type:

Product

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) As
PspListOfBSTRs

Returns the part parametric attribute names.

Parameters:

iRefPart
Reference Product in new CATPart document.

Returns:
List of parametric attribute names.

Example:

Dim objThisIntf As PspBuildPart
Dim iRefPart As Product
Dim oLAttributeNames As PspListOfBSTRs
Set oLAttributeNames = objThisIntf.ListPartParametricAttributes (iRefPart)
Parameters:

i_ref_part (Product) –

Return type:

PSPListOfBSTRs

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 Product

Create a new part.

Parameters:

iPartType
Part class type.
iPartNumber
Part number.

Returns:
Retruns Reference Product pointer in new CATPart document.

Example:

Dim objThisIntf As PspBuildPart
Dim iuPartType As CATBSTR
Dim uPartNumber As CATBSTR
Dim oNewRefPart As Product
Set oNewRefPart = objThisIntf.NewPart (iuPartType, uPartNumber)
Parameters:
  • iu_part_type (str) –

  • u_part_number (str) –

Return type:

Product

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:

iRefPart
Reference Product in new CATPart document.
iLAttributeNames
List of parametric attribute names.

Example:

Dim objThisIntf As PspBuildPart
Dim iRefPart As Product
Dim iLAttributeNames As PspListOfBSTRs
objThisIntf.SetPartParametricAttributes iRefPart,
iLAttributeNames
Parameters:
Return type:

None