Mechanical Modeler |
Creating Non Geometrical Features: MmrMultiMeasure & MmrMeasureSetA full example to create and integrate in the V5 your own non geometrical features |
|
Use Case |
AbstractThis use case explains how to create and integrate a new analysis
feature derivate from MechanicalElement which doesn't have any geometry:
the CAAMmrMultiMeasure. It also shows how to create a Set
dedicated to aggregate CAAMmrMultiMeasure in the MechanicalPart: the
CAAMmrMeasureSet, derivate from MechanicalSet. |
This use case illustrates the sub-section entitled "The Contents of
the Specification Container - Non Geometrical Features Set" and "The
Contents of the Specification Container - Non Geometrical Features" you can find in the "Technical Articles"
section of the Mechanical Modeler home page.
Its main intent is to show you
MechanicalElements and "MechanicalSets" derivates specificities [1], [2] and to explain
how to use them when you need to design non Geometrical Features.
In this use case, you will learn to:
How to create a new StartUp of MechanicalElement or MechanicalSet, how to store it in a feature's catalog and how to instantiate it.
Default Behaviors for CATIParmPublisher, CATINavigateObject, ContextualMenu.
How to make a Build process with non geometrical features
How implement visualization on non Geometrical Feature.
The "Creating Non Geometrical Features:" use case constitutes a set of articles, each describing the creation or the integration in V5.
[Top]
The CAAMmrMultiMeasure is an analysis feature derivate from
MechanicalElement StartUp which allows users to compute the Length, or the
Wet Area and/or the Volume of a Geometrical Feature.
Consequently, it is designed with one input: The Geometrical Feature to analyze,
and three outputs: the three computed parameters reachable with CATIDescendants
or CATIParmPublisher.
It doesn't have any geometry but a visualization: on the 3D View, its result - constituted from a physical measure - is displayed in a violet box.
As it is a specific feature, we decided to design a specific set to aggregate
it in the MechanicalPart: the CAAMmrMultiMeasure.
This set is derivate from MechanicalSet StartUp and can display the
visualization of the feature aggregated in its own.
[Top]
The "MultiMeasure And MeasureSet" is an use case of the CAAMechanicalModeler.edu framework that illustrates MechanicalModeler, MecModInterfaces and MechanicalModelerUI framework capabilities in creating a non geometrical feature.
[Top]
The final intent of this use case is to design, create and use an analysis feature which doesn't have any geometry but which has a 3D Representation. It can be divided into several steps:
The CATfct file has been generated using CATfctEditorAssistant tool. The client authentication is "CAAMmrUseCaseForMechanicalSetsAndElements" .
To create instances of the CAAMmrMultiMeasure and CAAMmrMeasureSet StartUp, you should create and implement a factory interface on the specification container [3]. This interface creates instances but do not set them in the MechanicalPart.
|
CATPrtCont is the container containing all the specifications of the Part document. This factory interface uses the "CAAMmrMultiMeasureAndMeasureSetCatalog" catalog file created in the first step.
In the CATIBuild implementation, or in the edition
command, it is mandatory to have an access to the input specifications of the
new feature. It is the role of the CAAIMmrMultiMeasure interface.
|
With this interface you can retrieve or modify the value of
CAAMmrMultiMeasure's Attributes.
To integrate a new feature in V5, Interfaces classified in three classes
need to be taken into account:
CAAEMmrMultiMeasureBuild.cpp
).
CAAEMmrMultiMeasureReplace.cpp
). CAAMmrMultiMeasureStCmd
state command; an interactive command
without panel. This command can be used in the creation mode and in
the edition modeCAAEMmrMultiMeasureVisu
,
CAAMmrMultiMeasure builds a 3DBagRep in which the representation of
the measure's result is shown.CAAEMmrMeasureSetVisu
)
builds a 3DBagRep which aggregates all the 3DRep of its aggregated
features.CATEMmrMultiMeasureSelectShow
implementation.To create interactively new instances of the CAAMmrMeasureSet or
CAAMmrMultiMeasure, you will create an add-in of the
Shape Design workbench (CAAEMmrMultiMeasureAndMeasureSetAdn
) into which you will add the
MmrMultiMeasure and the MmrMeasureSet Creation Commands (CAAMmrMultiMeasureStCmd
and CAAMmrMeasureSetStCmd
).
[Top]
The documentation of the Extending Combined Curve Use Case contains the following articles:
[Top]
To launch this use case, you will need to set up the build time environment, then compile the following modules of the CAAMechanicalModeler.edu framework along with their prerequisites:
Next, let's execute interactively the use case. Several steps must be followed in order to completely execute the use case:
Launch CATIA. When the application is ready, follow scenarios described below:
The Creation scenario:
View Of MmrMultiMeasure instance |
The Edition scenario
The Open scenario:
(*) The file "CAAMmrMultiMeasureAndMeasureSet.CATPart" is located in the directory
CAAMechanicalModeler.edu/InputData
- Unix :
InstallRootDirectory/CAAMechanicalModeler.edu/InputData
- Windows :
InstallRootDirectory\CAAMechanicalModeler.edu\InputData
where
InstallRootDirectory
is the directory where the CAA CD-ROM is installed.
[Top]
The "MultiMeasure And MeasureSet" use case is made of several modules of the CAAMechanicalModeler.edu framework:
Windows | InstallRootDirectory\CAAMechanicalModeler.edu\ |
Unix | InstallRootDirectory/CAAMechanicalModeler.edu/ |
where InstallRootDirectory
is the directory where the CAA CD-ROM
is installed.
These modules are:
[Top]
You can now successively get to:
Creating a feature Catalog using OSM Language
Creating the factory interface of CAAMmrMultiMeasure And MeasureSet
Creating the CAAMmrMultiMeasure 's Interface of Type
Building the CAAMmrMultiMeasure's Result
Displaying the Computed Result in the 3D View
Creating an Add-in in the Shape Design Workbench
[Top]
The CAAMechanicalModeler.edu "MultiMeasure And MeasureSet" sample shows how to create your own Non Geometrical Feature.
[Top]
Version: 1 [May 2007] | Document created |
[Top] |
Copyright © 2007, Dassault Systèmes. All rights reserved.