Adding an Attribute (from/to ENOVIA)

This section describes how to map attributes from ENOVIA for synchronization.

Attributes can be either System attributes or Custom attributes. In ENOVIA, System attributes are are applied to any business object, such as Description, Owner, Type, Revision, etc. ENOVIA Custom attributes are those that are defined and added to ENOVIA types. The following sections describe the procedure to map attributes from ENOVIA for synchronization.

This task shows you how to:

Custom Attributes

This section shows the procedure to add a Custom Attribute, such as "Material" in SolidWorks, and map it in ENOVIA.

  1. On the SolidWorks side:

    1. Open a part in SolidWorks and click File > Properties > Custom.
    2. Add a Custom attribute called "Material" (text attribute) and assign a value, for example, "Aluminum".

  2. On the ENOVIA side:

    1. In ENOVIA, define an attribute called "Material" (string type). (Note: The name can be different)
    2. Add this attribute to the relevant ENOVIA types.
    3. To support the SolidWorks to ENOVIA attribute transfer, map the Material attribute in theMCADInteg-CADToMxAttribMapping attribute of the Global Config Object to component,Material|SW Component,Material.

    With these settings, if the user sets the "Material" attribute in SolidWorks, it will be transferred to ENOVIA and back when the user selects the Copy attribute option in the Checkin or Checkout page. Users can also synchronize the attributes using the Synch Attributes option.

System Attributes

If system (in the case of ENOVIA) or summary (in the case of SolidWorks) attributes are used, they must be formatted $$ ... $$ for correct identification.

For example,

$$Description$$, $$Author$$

The following table explains the supported system attributes in ENOVIA that can be transferred back and forth with SolidWorks.

Direction

Description

Owner

Type

Name

Revision

To ENOVIA

Supported

Supported

Not Supported

Not supported

Not supported

From ENOVIA

Supported

Supported

Supported

Supported

Supported

To add a Summary attribute, for exampleComments, in SolidWorks and map it to Description in ENOVIA:

  1. On the SolidWorks side:

    1. Open a part in SolidWorks and click File > Properties > Summary.
    2. Assign a value such as Design Part in the text box provided for the attribute Comments.
    3. Add a Custom attribute called "Material" (text attribute) and assign a value, for example, "Aluminum".

  2. On the ENOVIA side:

    1. In ENOVIA, define an attribute called "Description" (string type). (Note: Name can be different.)
    2. Add this attribute to the relevant ENOVIA types.
    3. For supporting SolidWorks to ENOVIA attribute transfer, map the Description attribute in the MCADInteg-CADToMxAttribMapping attribute of the Global Config Object.
    4. For supporting ENOVIA to SolidWorks attribute transfer, map the Description attribute in theMCADInteg-MxToCADAttribMappingattribute of the current Global Config Object. Note: The mappings for System attributes must always be in lower case on the ENOVIA side.

    You select the Copy Attribute option in the Checkin or Checkout page. You can also use the Synch Attribute option to synchronize the attribute.

Configuration Specific

You can ao add a configuration specific attribute in SolidWorks and map it in ENOVIA.

The following example shows the steps to add a configuration specific attribute called "CheckedBy" in SolidWorks and map it in ENOVIA.

  1. On the SolidWorks side:

    1. Open a part having configurations in SolidWorks and click File > Properties > Configuration Specific.
    2. Add a Configurations specific attribute called "CheckedBy" (text attribute) and assign "Design Engineer" as the value.

      This attribute is specific to the configuration that is currently active.

  2. On the ENOVIA side:

    1. Define an attribute called "CheckedBy" (string type). (Note: The name can be different)
    2. Add this attribute to the relevant ENOVIA types.
    3. For supporting SolidWorks to ENOVIA attribute transfer, may this CheckedBy attribute in the MCADInteg-CADToMxAttribMapping attribute of the Global Config Object. In this case, the mapping will be: componentInstance,CheckedBy|SW Component Instance,CheckedBy.
    4. For supporting ENOVIA to SolidWorks attribute transfer, map the CheckedBy attribute in the MCADInteg-MxToCADAttribMappingattribute of the current Global Config Object.

    With these settings, if you set the "CheckedBy" attribute in SolidWorks, it will be transferred to ENOVIA and back.

Note: You must select the Copy attribute option in the Checkin or Checkout page of the specific instance. Alternatively, you can synch the attributes using Synch Attributes.

You can assign both custom and configuration specific attributes simultaneously. To do so, map the custom attributes to the component family and the configuration specific attributes to the component instance. All the custom attributes are related with the Family CAD ype, and all the configuration specific attributes are related with the specific instance CAD type.

Only mappings for major types are necessary. ENOVIA Designer Central internally handles some attributes for various types.