All Frameworks Class Hierarchy This Framework Previous Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIxPDMSession
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIxPDMSession
Interface to retrieve an item associated with a document in the current editor.
Role: This interface is used to retrieve an item from a document (a file) which is in
relationship with the current editor:
The root file is those associated with the editor. An editor, a CATFrmEditor class instance, has only one document (a file). It is those returned by the GetDocument method of the CATFrmEditor class.
The current selected file is a file pointed by the root file, and selected (in the specification tree) by the end user.
Refer to the ApplicationFrame framework API for more details about the editor and its associated files.
This interface is implemented on the unique CATApplicationFrame instance. Use it only into an CATIA V5 interactive command.
CATApplicationFrame *pApplication = CATApplicationFrame::GetFrame(); CATIxPDMItem_var xPDMItem; CATIxPDMSession_var xPDMSession(pApplication); if ( NULL_var != xPDMSession ) { xPDMSession->GetRootItem(xPDMItem); ....
All the methods pre-requisites the PX1 license
public virtual HRESULT GetCurrentItem( | CATIxPDMItem_var& | oCurrentItem) = 0 |
public virtual HRESULT GetRootItem( | CATIxPDMItem_var& | oRootItem) = 0 |
Copyright © 2003, Dassault Systèmes. All rights reserved.