CATMecModLiveUseItf Interface 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 3D Shape.
Role:With this interface and the 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 interface for explanation about geometrical features sets creation rules.

All the methods of this interface need a context. 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 method on the specification container.

See also:
,


Method Index


o GetAllBodies(CATUnicodeString&,CATListValCATBaseUnknown_var&)
Retrieves all root Bodies, all GS and all root OGS.
o GetDirectBodies(CATUnicodeString&,CATListValCATBaseUnknown_var&)
Retrieves all root geometrical feature sets (all root Bodies,all root OGS and all root GS).
o GetDirectBodiesChangeEvent()
Retrieves the event that is dispatched when the list of root geometrical feature sets change.
o GetMainBody(CATUnicodeString&,CATBaseUnknown_var&)
Retrieves the main Body.
o GetSolidBodies(CATUnicodeString&,CATListValCATBaseUnknown_var&)
Retrieves all root Bodies.
o GetSurfBodies(CATUnicodeString&,CATListValCATBaseUnknown_var&)
Retrieves all GS and all root OGS.

Methods


o GetAllBodies
public virtual GetAllBodies( const iViewContext,
oBodies)
Retrieves all root Bodies, all GS and all root OGS.
Parameters:
iViewContext
The context of view:
Legal values:
  • "MfUnfoldedView" or "Unfolded": for an unfolded view in Sheet Metal applications,
  • "MfDefault3DView": for the default 3D view,
  • otherwise: the default 3D view.
oBodies
The list = list of
+ list of
o GetDirectBodies
public virtual GetDirectBodies( const iViewContext,
oBodies)
Retrieves all root geometrical feature sets (all root Bodies,all root OGS and all root GS).
Parameters:
iViewContext
The context of view:
Legal values:
  • "MfUnfoldedView" or "Unfolded": for an unfolded view in Sheet Metal applications,
  • "MfDefault3DView": for the default 3D view,
  • otherwise: the default 3D view.
oBodies
A list containing the root geometrical feature sets.
o GetDirectBodiesChangeEvent
public virtual GetDirectBodiesChangeEvent()
Retrieves the event that is dispatched when the list of root geometrical feature sets change.
Example:Here is an example of subscription the DirectBodiesChange event. pPartRequestonPart is a interface pointer on the Part feature and "this" is the object that wants to subscribe to the event.
 
CATBaseUnknown* pBUOnPart = NULL;
pPartRequestOnPart->QueryInterface(IID_CATBaseUnknown,(void**)&pBUOnPart);
...
::AddCallback(this,pBUOnPart,pPartRequestOnPart->GetDirectBodiesChangeEvent(),(CATSubscriberMethod)&MfClass::MyMethodCB)
...
Don't forget to unsubscribe.
o GetMainBody
public virtual GetMainBody( const iViewContext,
oPartBody)
Retrieves the main Body. The main Body is unique in a 3D Shape. The default created Body after creation of a 3D Shape is the main Body. It can be changed afterwards thanks to the "Change Part Body" command.
Parameters:
iViewContext
The context of view:
Legal values:
  • "MfUnfoldedView" or "Unfolded": for an unfolded view in Sheet Metal applications,
  • "MfDefault3DView": for the default 3D view,
  • otherwise: the default 3D view.
oPartBody
The Body which is the main Body.
o GetSolidBodies
public virtual GetSolidBodies( const iViewContext,
oBodies)
Retrieves all root Bodies.
Parameters:
iViewContext
The context of view:
Legal values:
  • "MfUnfoldedView" or "Unfolded": for an unfolded view in Sheet Metal applications,
  • "MfDefault3DView": for the default 3D view,
  • otherwise: the default 3D view.
oBodies
The list of root Bodies.
o GetSurfBodies
public virtual GetSurfBodies( const iViewContext,
oBodies)
Retrieves all GS and all root OGS.
Parameters:
iViewContext
The context of view:
Legal values:
  • "MfUnfoldedView" or "Unfolded": for an unfolded view in Sheet Metal applications,
  • "MfDefault3DView": for the default 3D view,
  • otherwise: the default 3D view.
oBodies
The list of all all GS and all root OGS features contained in the 3D Shape.

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

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.