All Frameworks  Class Hierarchy  This Framework  Next  Indexes

CATPDMBase Class CATPDMCATIAServices

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATPDMCATIAServices
 

Usage: you must use this class as is. You should never derive it.


public class CATPDMCATIAServices

Services to interface with CATIA client Modeler.

Role:Provide various services to support the CATIA client modeler


Method Index


o BindEnoviaIdToCATIA(CATIPLMIdentificator*,CATBaseUnknown**)
Enable the client to go from a CATIPLMIdentificator to a CATIA modeler object already loaded in session.
o ExtractEnoviaIdFromCATIA(CATBaseUnknown*,CATIPLMIdentificator**)
Enable the client to go from a CATIA Modeler object and get its identificator.

Methods


o BindEnoviaIdToCATIA
public static HRESULT BindEnoviaIdToCATIA(CATIPLMIdentificator* ipId,
CATBaseUnknown** opObj)
Enable the client to go from a CATIPLMIdentificator to a CATIA modeler object already loaded in session.
Role:This method enables to bind an existing CATIA modeler object from a CATIPLMIdentificator

Commonly supported ENOVIA ids are ENOVIA_VPMTPDocumentVersion, ENOVIA_VPMPartVersion, ENOVIA_VPMItemInstance, ENOVIA_VPMProductRootClass
restrictions apply: not all ENOVIA ids can be binded to CATIA.

Parameters:
ipId
Identificator of the object
opObj
Modeler object in session
Returns:
  • S_OK: identificator exist as a modeler object in current CATIA session
  • E_FAIL: object cannot be binded to an existing modeler object
o ExtractEnoviaIdFromCATIA
public static HRESULT ExtractEnoviaIdFromCATIA(CATBaseUnknown* ipObj,
CATIPLMIdentificator** opId)
Enable the client to go from a CATIA Modeler object and get its identificator.
Role:This method enables to get a CATIPLMIdentificator from an existing CATIA modeler object

Commonly supported CATIA Object are CATDocument or CATIProduct (root being PRC, intermediate level II, leave PV)
restrictions apply: not all CATIA Object correspond to ENOVIA persistant ids.

Parameters:
ipObj
CATIA modeler object
opId
identificator for ENOVIA
Returns:
  • S_OK: identificator exist as a modeler object in current CATIA session
  • E_FAIL: object cannot convert to an ENOVIA persistant Ids

This object is included in the file: CATPDMCATIAServices.h
If needed, your Imakefile.mk should include the module: CATPDMBaseEnoviaV5CAA

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