Mechanical Modeler 

Creating Non Geometrical Features: MmrMultiMeasure & MmrMeasureSet

A full example to create and integrate in the V5 your own non geometrical features
Use Case

Abstract

This 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.
 


What You Will Learn With This Use Case

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]

What Is a "CAAMmrMultiMeasure", What Is a "CAAMmrMeasureSet"

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" Use Case

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]

What Does the "MultiMeasure And MeasureSet" Use Case Do

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:

  1. Creating the new Analysis Feature StartUp(CAAMmrMultiMeasure), the new Analysis Set StartUp (CAAMmrMeasureSet) and storing them in the catalog "CAAMmrMultiMeasureAndMeasureSetCatalog.CATfct" using "OSM Modelling Language".

    The CATfct file has been generated using CATfctEditorAssistant tool.  The client authentication is "CAAMmrUseCaseForMechanicalSetsAndElements" .

  2. Creating an interface to instantiate the new StartUps "CAAMmrMultiMeasure" and "CAAMmrMeasureSet" - the CAAIMmrMultiMeasureAndMeasureSetFactory.

    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.

    Fig.1: The CAAIMmrMultiMeasureAndMeasureSetFactory Interface

    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.

  3. Creating an interface to modify or retrieve the input specifications of the CAAMmrMultiMeasure instances.- Creating CAAMmrMultiMeasure's Interface of Type
  4. 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. 
     

    Fig.2: The CAAIMmrMultiMeasure Interface

    With this interface you can retrieve or modify the value of CAAMmrMultiMeasure's Attributes.
     

  5. Integrating the CAAMmrMultiMeasure in the V5  
  6. To integrate a new feature in V5, Interfaces classified in three classes need to be taken into account:
     

  7. Creating Interactively Instances
  8. 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]

Overview of the "MultiMeasure And MeasureSet" Use Case Articles

The documentation of the Extending Combined Curve Use Case contains the following articles:

[Top]

How to Launch the "MultiMeasure And MeasureSet" Use Case

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:

The Creation scenario:

The Edition scenario

The Open scenario:

(*) The file "CAAMmrMultiMeasureAndMeasureSet.CATPart" is located in the directory CAAMechanicalModeler.edu/InputData

where InstallRootDirectory is the directory where the CAA CD-ROM is installed.

[Top]

Where to Find the CAAMmrMultiMeasureAndMeasureSet Code

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]


Step-by-Step

You can now successively get to:

[Top]


In Short

The CAAMechanicalModeler.edu "MultiMeasure And MeasureSet" sample shows how to create your own Non Geometrical Feature.

[Top]


References

[1] The Contents of the Specification Container - Non Geometrical Features
[2] The Contents of the Specification Container - Non Geometrical Features Set
[3] The Structure of a Part Document
[4] The Build/Update Mechanism
[Top]

History

Version: 1 [May 2007] Document created
[Top]

Copyright © 2007, Dassault Systèmes. All rights reserved.