Indexes   

PspBuildPart (Object)

Represents Interface to create and modify a part.
Role: To build and define a part.

Method Index

ChangePartType
Returns the part after changing the part type of an existing part.
ListPartParametricAttributes
Returns the part parametric attribute names.
NewPart
Create a new part.
SetPartParametricAttributes
Sets the part parametric attribute names.

Methods


o Func ChangePartType( iRefPart,
iuPartType,
uPartNumber) As
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 )
 
o Func ListPartParametricAttributes( iRefPart) As
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)
 
o Func NewPart( iuPartType,
uPartNumber) As
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)
 
o Sub SetPartParametricAttributes( iRefPart,
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
 

Copyright © 2006, Dassault Systèmes. All rights reserved.