All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

CATPlantShipInterfaces Interface CATIPspBuildPart

System.IUnknown
  |
  +---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 HRESULT ChangePartType( const CATIProduct* iReferencePart,
const CATUnicodeString& iPartType,
const CATUnicodeString& iPartNumber,
CATIProduct** oNewReferencePart) = 0
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 HRESULT ListPartParametricAttributes( const CATIProduct* iReferencePart,
CATListValCATUnicodeString*& oListofAttributeNames) = 0
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 HRESULT NewPart( const CATUnicodeString& iPartType,
const CATUnicodeString& iPartNumber,
CATIProduct** oReferencePart,
const int iLightPart=0 )= 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 HRESULT SetPartParametricAttributes( const CATIProduct* iReferencePart,
const CATListValCATUnicodeString* iListofAttributeNames) = 0
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.