CATMecModLiveUseItf Interface CATIBodyRequest

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


interface CATIBodyRequest

Interface to retrieve the result of a geometrical feature set.
Role:This interface enables you to retrieve the result of a geometrical set. This interface is available for all kind of geometrical features sets.

The method, , enables you to retrieve the result of a geometrical feature set.
The result of a geometrical feature set is made from all the geometrical features that are aggregated in this geometrical set and that are not absorbed.
It can be directly aggregated (a Point under the the geometrical feature set), or indirectly (a Point under a Line that is under the geometrical feature set).
This method works for nearly any kind of geometrical features sets.
In particular, this method works for a Body operated by a boolean operation.
This method does not work for sub-Body and sub-OGS (Body or OGS aggregated directly in an OGS or in a Body).

The first method of this interface needs 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.

In all cases, the result list contains features implementing the interface. Once you have the resulting feature(s), use the method to retrieve the associated CATBody. Be aware that you can retrieve deactivated features in the list (see the interface). In that case, it can happen that the associated CATBody does not exist.

See also:


Method Index


o GetDirectBodies(CATListValCATBaseUnknown_var&)
Retrieves geometrical feature sets (Bodies,OGS and GS) directly under this geometrical feature set.
o GetResults(CATUnicodeString&,CATListValCATBaseUnknown_var&)
Retrieves the result of a geometrical feature set.

Methods


o GetDirectBodies
public virtual GetDirectBodies( oBodies)
Retrieves geometrical feature sets (Bodies,OGS and GS) directly under this geometrical feature set.
Parameters:
oBodies
A list containing the geometrical feature sets.
o GetResults
public virtual GetResults( const iViewContext,
oResults)
Retrieves the result of a geometrical feature set.
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.
oResults
A list of geometrical features.

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

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