All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIPartRequest
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIPartRequest
Interface to retrieve the geometrical features sets of the Part document.
Role:With this interface and the CATIPrtPart interface, you have all the methods to manage the Part feature.
This interface enables you to retrieve the geometrical features sets aggregated directely or indirectly
by the Part feature.
These geometrical features sets can be:
Refer to
CATIMechanicalRootFactory for description of aggregation rules of Surfacic features sets.
With
GetSurfBodies you retrieve all the Surfacic features sets of the Part document except sub-OGS (OGS aggregated by antoher geometrical features set). It means that for OGS,
you retrieve only the root-OGS (OGS aggregated at the Part level)
Refer to
CATIMechanicalRootFactory for description of aggregation rules of Bodies.
However, in the specification tree, a Body can appear under another Body but this is through a boolean operation.
In that case, the Body is said as being operated by the boolean operation.
An operated body is the second operand of a boolean operation between two Bodies.
Refer to the CATIPrtBooleanFactory or CATIPrtTrimFactory interfaces
of the PartInterfaces framework to have more details about the boolean operations.
The
GetSolidBodies method allows you to retrieve all the Bodies that you see at the Part level (or root Bodies).
You don't retrieve operated Bodies and Bodies aggregated in an OGS with this method.
All the methods of this interface need a context (It is a difference between the CATIDescendants interface). The context is the means to have for the same design several representations. There is a default context represented by the MfDefault3DView string value.
This interface is implemented on the Part feature that you retrieve by using the CATIPrtContainer.GetPart method on the specification container (see CATIContainerOfDocument )
public virtual HRESULT GetAllBodies( | const CATUnicodeString& | iViewContext, |
CATListValCATBaseUnknown_var& | oBodies)=0 |
public virtual HRESULT GetDirectBodies( | const CATUnicodeString& | iViewContext, |
CATListValCATBaseUnknown_var& | oBodies)=0 |
public virtual CATCallbackEvent GetDirectBodiesChangeEvent( | )= 0 |
Don't forget to unsubscribe.
CATBaseUnknown* pBUOnPart = NULL;
pPartRequestOnPart->QueryInterface(IID_CATBaseUnknown,(void**)&pBUOnPart);
...
::AddCallback(this,pBUOnPart,pPartRequestOnPart->GetDirectBodiesChangeEvent(),(CATSubscriberMethod)&MfClass::MyMethodCB)
...
public virtual HRESULT GetMainBody( | const CATUnicodeString& | iViewContext, |
CATBaseUnknown_var& | oPartBody)=0 |
public virtual HRESULT GetSolidBodies( | const CATUnicodeString& | iViewContext, |
CATListValCATBaseUnknown_var& | oBodies)=0 |
public virtual HRESULT GetSurfBodies( | const CATUnicodeString& | iViewContext, |
CATListValCATBaseUnknown_var& | oBodies)=0 |
Copyright © 2003, Dassault Systèmes. All rights reserved.