RADE

Data Model Customizer for ENOVIA

Customizing an ENOVIA Product Structure

Use Case

Abstract

 This article shows how to customize an ENOVIA Product Structure.


Principle

Product modeler belongs to those modelers that require rigor and knowledge of the model composition.
Product customization will not be as simple as an Action one. It is quite understandable owing to its complexity.

These restrictions are summed up in the graphic below.

You are going to customize a product and add an attribute to all customized classes:

Creating a UML Project

  1. From the File menu, select New->Other->UML Project. Click Next>.
  2. Enter the name of the UML project. Click Next> and Finish.
  3. In the Navigator view, right-click your project and select Open as a DMC Project.
  4. In the Open a DMC Project window, select the tool level and click Next>.
  5. Click Close in the Initializing tools window.
  6. Click Add and select your prerequisite frameworks. Click Finish.
  7. Click Close in the Installing Prereqs window.

[Top]

Creating a Product Customization

  1. From the File menu, select Other->DMC Elements->New LCA Customization. Click Next>.
  2. Enter the application name in the Application Name field.
  3. Click ... in the Customize LCA application field. In the Select a framework window, select Product Structure.

  1. Click Finish. The wizard creates a new workspace.

[Top]

Creating a Modeler Object

Remember that you have to customize three classes to create a Product Structure customization.

  1. In the Navigator view, expand the MyProduct node and double-click the .emx file.

  2. From the File menu, select New->Other->DMC Elements->New Modeler Object. Click Next>.
  3. Enter the name of the new Modeler Object, CustPartMaster in this example.
  4. Select the VPMPartMaster in the Combo Box. Click Next>.

  1. Click Insert to add an attribute to your CustPartMaster, Available_colors in this example.

  2. You can also add a new index by using the second Insert button.
  3. Click Finish to finish the command.
  4. Repeat the above operations for VPMPartVersion and VPMItemInstance. The following UML graphics describe your customization.

[Top]

Generating the Dictionary File

  1. Select DMC Project->Generate VPM Dictionary file.

The wizard creates MyProduct.metadata under the directory MyProduct/CNext/code/dictionary.

[Top]

Publishing Enovia Data

  1. Select DMC Project->Publish VPM Dictionary file in Database.

Check if the settings are correctly valuated and click OK to start the Publish command to finish the scenario.

Testing in ENOVIA

Now it is time to test your customization.

To use this customization, launch ENOVIA within the environment of the customization. So just indicate the location where your customization is built on the server, as follows:

On UNIX:

$ENOVIA_INSTALLATION_PATH$/$OS$/code/command/enoviastart -direnv $EnvDir$ -env $EnvName$

where:

On Windows:

$ENOVIA_INSTALL_PATH$/$OS$/code/bin/CATSTART -run "ENOVIA.exe" -direnv $EnvDir$ -env $EnvName$ -object "-senv $sEnvName$ -sdirenv $sEnvDir$"

where:

sEnvDir is the server environment folder containing the sEnvName.txt file.

Now we can use our new customized Product in ENOVIA.

 

If we save a product in database, it can be easily retrieved in the search CATlet. By customizing, search entities are also modified to take into account the new products.

 

[Top]


History

Version: 1 [Mar 2004] Document created
Version: 2 [February 2006] Document updated
[Top]

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