CATMecModUseItf Interface CATIMmiUseMechanicalTool
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIMmiUseMechanicalTool
Interface to manage a MechanicalTool feature.
Role: This interface is specific for a MechanicalTool feature.
A MechanicalTool feature is a mechanical feature which
aggregates other mechanical features to represent a solid form.
So, it is sometimes named solid body.
It appears in the specification tree with the name:
- PartBody
It represents the main body and there is only one instance of it in the model. It is
automatically created and cannot be deleted.
- Body
It can have 0 to N Bodies in the model.
The enables you to create a MechanicalTool and the
interface enables you to retrieve them.
A MechanicalTool feature aggregates mechanical features which can be:
- A Sketch feature,
- A Constraint feature,
- A Solid feature
The
and
interfaces are dedicated to this type of feature. There are two groups of solid features:
- Contextual feature such as Draft, Split, Fillet ...
- Form feature such as Prism, Revol, Boolean Operation (Trim,Add,...), ...
The
interface is required to insert such feature inside the solid body.
The
interface enables you to retrieve the feature which holds the topological result of the body.
This interface allows you three main actions on a MechanicalTool feature:
- Retrieving the first or the last solid feature in the body thanks to
and
respectively
- Retrieving the last solid feature with a successul update, see
- Retrieving the boolean operation when the MechanicalTool is an operated body
(refer to the
interface for a "operated body" definition), see
Method Index
- o
GetBooleanOperation(CATIMmiMechanicalFeature_var&)
- Retrieve the boolean operation when the current solid body is operated.
- o
GetFirstShapeFeature(CATIMmiMechanicalFeature_var&)
- Retrieve the first solid feature.
- o
GetLastShapeFeature(CATIMmiMechanicalFeature_var&)
- Retrieve the last solid feature.
- o
GetLastShapeFeatureSuccessfullyUpdated(CATIMmiMechanicalFeature_var&)
- Retrieve the last activated solid feature without update error.
Methods
o GetBooleanOperation
public virtual GetBooleanOperation( | | oBoolOper) |
-
Retrieve the boolean operation when the current solid body is operated.
Role:This method retrieves the boolean operation which has
operated the current body. If this body has not been operated the returned value is
NULL_var.
- Parameters:
-
- oBoolOper
- You retrieve the boolean operation
Refer
to the CATITrimBooleanFactory and CATIPrtBooleanFactory interfaces for
details about this feature.
- Returns:
- E_FAIL if an error occured, S_OK otherwise.
o GetFirstShapeFeature
public virtual GetFirstShapeFeature( | | oFirstShape) |
-
Retrieve the first solid feature.
- Returns:
- E_FAIL if an error occured, S_OK otherwise.
o GetLastShapeFeature
public virtual GetLastShapeFeature( | | oLastShape) |
-
Retrieve the last solid feature.
- Returns:
- E_FAIL if an error occured, S_OK otherwise.
o GetLastShapeFeatureSuccessfullyUpdated
public virtual GetLastShapeFeatureSuccessfullyUpdated( | | oLastShape) |
-
Retrieve the last activated solid feature without update error.
Role: returns the last solid active in the sense of
Furthermore this feature must either be updated or have a geometrical result.
- Returns:
- E_FAIL if an error occured, S_OK otherwise.
This object is included in the file: CATIMmiUseMechanicalTool.h
If needed, your Imakefile.mk should include the module: CATMecModUseItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.