All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VPMInterfaces Interface ENOVIGraphManagement

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

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


interface ENOVIGraphManagement

Interface to perform graph operations on ENOVIA objects.
Role: ENOVIGraphManagement is implemented by the FactoryManager singleton which you can get by calling VPMSession::GetVPMObjectFactory. This interface is implemented and ready to be used.


Method Index


o GetGraphManager(CATBaseUnknown_var&,CATIVpmGraphMng_var&)
gives the graph manager for the given object.
o GetListOfStatus(CATBaseUnknown_var&,CATLISTV(CATBaseUnknown_var)&)
gives the list of valid statuses for the given object.
o StepForward(CATBaseUnknown_var&,CATUnicodeString&,CATUnicodeString&)
Change the status of a VPMObject.

Methods


o GetGraphManager
public virtual HRESULT GetGraphManager( const CATBaseUnknown_var& iObject,
CATIVpmGraphMng_var& oGraphMng)=0
gives the graph manager for the given object.
Parameters:
iObject
a VPMObject whose CATIVpmGraphMng you want to retrieve
oGraphMng
the placeholder where the expected CATIVpmGraphMng is returned.
o GetListOfStatus
public virtual HRESULT GetListOfStatus( const CATBaseUnknown_var& iObject,
CATLISTV(CATBaseUnknown_var)& oStatusList)=0
gives the list of valid statuses for the given object.
Parameters:
iObject
a VPMObject whose statuses list you want to retrieve
oStatusList
the returned list of status objects.
o StepForward
public virtual HRESULT StepForward( const CATBaseUnknown_var& iObject,
const CATUnicodeString& iTransition,
CATUnicodeString& oNewStatus)=0
Change the status of a VPMObject.
Parameters:
iObject
a VPMObject whose status you want to change
iTransition
the name of the transition you want the object to go through. From the start status, the object may reach several possible valid statuses, this parameter lets you specify which arc (also called a transition) of the graph you want to take. This method cannot be name 'promote' because, depending on the semantics of the transition, it may designate either a promotion operation, or a demotion operation.
oNewStatus
the name of the status that iObject has reached via this step forward.

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

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