All Frameworks  Class Hierarchy  This Framework  Indexes   

CATPlantShipInterfaces Interface CATIPspBuildPart

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIPspBuildPart

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


Method Index


o ChangePartType(CATIProduct*,CATUnicodeString&,CATUnicodeString&,CATIProduct**)
Change the part type of an existing part.
o ListPartParametricAttributes(CATIProduct*,CATListValCATUnicodeString*&)
Retrieve a list of part parametric attribute names.
o NewPart(CATUnicodeString&,CATUnicodeString&,CATIProduct**,int)
Create a new part.
o SetPartParametricAttributes(CATIProduct*,CATListValCATUnicodeString*)
Set the part parametric attribute names.

Methods


o ChangePartType
public virtual ChangePartType( const iReferencePart,
const iPartType,
const iPartNumber,
oNewReferencePart)
Change 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.
oNewReferencePart
New reference Product in CATPart document.
Returns:
An HRESULT value.
Legal values:
S_OK
operation is successful
E_FAIL
operation failed
o ListPartParametricAttributes
public virtual ListPartParametricAttributes( const iReferencePart,
oListofAttributeNames)
Retrieve a list of part parametric attribute names.
Parameters:
iReferencePart
Reference Product in CATPart document to query.
oListofAttributeNames
List of parametric attribute names.
Returns:
An HRESULT value.
Legal values:
S_OK
operation is successful
E_FAIL
operation failed
o NewPart
public virtual NewPart( const iPartType,
const iPartNumber,
oReferencePart,
const iLightPart=0 )
Create a new part.
Parameters:
iPartType
Part class type.
iPartNumber
Part number.
oReferencePart
[out, IUnknown#Release] Reference Product pointer in new CATPart document.
iLightPart
Optional parameter to indicate creation of a light part. Default is not to create light part.
Returns:
An HRESULT value.
Legal values:
S_OK
operation is successful
E_FAIL
operation failed
o SetPartParametricAttributes
public virtual SetPartParametricAttributes( const iReferencePart,
const iListofAttributeNames)
Set the part parametric attribute names.
Parameters:
iReferencePart
Reference Product in CATPart document to modify.
iListofAttributeNames
List of parametric attribute names.
Returns:
An HRESULT value.
Legal values:
S_OK
operation is successful
E_FAIL
operation failed

This object is included in the file: CATIPspBuildPart.h

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