All Frameworks Class Hierarchy This Framework Previous Next Indexes
MecModInterfaces Interface CATIMechanicalTool
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATIMechanicalTool
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIMechanicalTool
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 CATIMechanicalRootFactory enables you to create a MechanicalTool and the
CATIPartRequest 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
CATIShapeFeatureBody and
CATIShapeFeatureProperties 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
CATIPrtProceduralView interface is required to insert such feature inside the solid body.
The
CATIBodyRequest 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:
Method Index
- o
GetBooleanOperation()
- Returns the boolean operation when the current solid body is operated.
- o
GetFirstShapeFeature()
- Returns the first solid feature.
- o
GetLastShapeFeature()
- Returns the last solid feature.
- o
GetLastShapeFeatureSuccessfullyUpdated()
- Returns the last activated solid feature without update error.
Methods
o GetBooleanOperation
-
Returns 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.
- Returns:
- Refer
to the CATITrimBooleanFactory and CATIPrtBooleanFactory interfaces for
details about this feature.
o GetFirstShapeFeature
-
Returns the first solid feature.
o GetLastShapeFeature
-
Returns the last solid feature.
o GetLastShapeFeatureSuccessfullyUpdated
-
Returns the last activated solid feature without update error.
Role: returns the last solid active in the sense of
CATIMechanicalProperties Furthermore this feature must either be updated or have a geometrical result.
- See also:
- CATIUpdateError, CATMfErrUpdate
This object is included in the file: CATIMechanicalTool.h
If needed, your Imakefile.mk should include the module: CATMecModInterfaces