Example Mapping
To define the mapping for a component and assembly both mapping to CAD
Model in X-CAD Design Management (many-to-one), use this syntax for the
MCADInteg-BusTypeMapping
attribute:
component|CAD Model
assembly|CAD Model
You can also set an attribute value when you map the business
type, such as Model Type (attribute) and component and assembly (values)
in this example:
component|CAD Drawing (Model Type:component)
assembly|CAD Drawing (Model Type:assembly)
Use the same syntax to map relationships for the MCADInteg-RelMapping
attribute:
CADSubcomponent|to, Associated Drawing (category:CADSubcomponent)
CADDrawing|to, Associated Drawing (category:CADDrawing)
JoinPart|to, Derived Component (category:join)
BasePart|to, Derived Component (category:base)
In general, to map to an ENOVIA entity and set an attribute
value, the syntax is:
cad entity 1| enovia entity 1 (attribute name: value1)
cad entity 2| enovia entity 1 (attribute name: value2)
cad entity 3| enovia entity 2
Using Expressions in Attribute Mapping
To support the Attribute Synchronization feature, you can specify an MQL
expression instead of the ENOVIA attribute name in the GCO mapping (ENOVIA-to-CAD).
During checkout and whenever attributes are synchronized from ENOVIA
to CAD, the expression is evaluated and the result is passed to the Collaborative
Product, just as a regular mapped ENOVIA attribute value.
Use this syntax for MCADInteg-MxToCADAttribMapping
attribute in the GCO:
"ENOVIA Type", expr(<expression>),|"cad type", "cad attribute"
The following example shows a mapping using expressions:
ProE Part,expr(relationship[Part
Specification].from.name)|component,PART_NAME
ProE Part,expr(relationship[Part
Specification].from.revision)|component,PART_REV
ProE Part,expr(relationship[Part Specification].from.attribute[Part
Classification].value)|component,PART_CLASSIFICATION
ProE Assembly,expr(relationship[Part
Specification].from.name)|assembly,PART_NAME
ProE Assembly,expr(relationship[Part
Specification].from.revision)|assembly,PART_REV
ProE Assembly,expr(relationship[Part
Specification].from.attribute[Part
Classification].value)|assembly,PART_CLASSIFICATION
Using expressions in Attribute Mapping functionality is
NOT supported from CAD to Matrix.