To integrate your company’s customized data model in STEPPDM exchanges using ISO STEP AP242
XML, it is possible to configure a mapping in a file called
cust-STEP-mapping.xml.
An example of object and attribute mappings of a sample customized 3DEXPERIENCE platform data model is provided with an installation in the
directory <Installation path>\reffiles\STEPPDM\config\client.
The structure of file cust-STEP-mapping.xml is a list of
<Object> xml tags inside the <ObjectsConfig>
xml container element:
<STEPAP242XMLCustConfig …>
<ObjectsConfig>
<Object …>
<attribute …>
<attribute …>
…
</Object>
<Object …>
<attribute …>
<attribute …>
…
</Object>
…
</ObjectsConfig>
</STEPAP242XMLCustConfig>
Each <Object> xml element corresponds to the declaration of a mapping
between a STEPPDM entity and object type of the 3DEXPERIENCE platform data model. Each <Object> xml
element contains declarations for attribute mapping. The format of
<Object> xml element is as following:
<Object Type_STEPAP242XML="…" Type_3DEXPERIENCE="…" CustomizedType_STEPAP242XML="…">
where,
-
Type_STEPAP242XML: STEP AP242 XML entity name (xml tag, for example:
Part, Document).
-
Type_3DEXPERIENCE: 3DEXPERIENCE platform entity type (existing or customized).
CustomizedType_STEPAP242XML: User defined name corresponding to the
classification of the Part or Document object elements in the STEPAP242XML file.
For each object an attribute mapping should be provided. The attribute mapping is defined
into an <attribute> element. The format of the
<attribute> xml element is as following:
<attribute Name_STEPAP242XML ="…" Name_3DEXPERIENCE ="…" type="…" Export="…" Import="…" Inherit="…">
where,
Name_STEPAP242XML: Name of the STEP AP242 XML
PropertyValue.
Name_3DEXPERIENCE: Name of 3DEXPERIENCE platform attribute to be exchanged. It must correspond to an
attribute declared on the 3DEXPERIENCE platform object type.
type: Attribute data type. Some of the possible values are boolean,
double, integer, string, dateTime.
Refer cust-STEP-mapping.xsd file,
for a complete list of possible values.
Export/Import: true or falseTo prevent exporting or importing any
specific attributes, the Export or Import attribute must
be set to false in the corresponding attribute xml element.
Inherit: true or falseEnhances the capability to add mapping
information on parent type if no definition is provided for its derived type. The
attribute must be set to true to enable this.
Note:
This
attribute is not supported for import.
You can also import and export the group of properties available in STEP AP242 XML to and
from the 3DEXPERIENCE Platform. For this use a attribute called
attributeGroup in the cust-STEP-mapping.xml file.
<STEPAP242XMLCustConfig …>
<ObjectsConfig>
<Object …>
<attributeGroup name="value">
<attribute …>
<attribute …>
</attributeGroup>
</Object>
</ObjectsConfig>
</STEPAP242XMLCustConfig>
where,
- For import
attributeGroup value should reflect the name of existing
property-group in the input STEP XML file.
- For export
attributeGroup value is the name of property-group that will
be created into the exported STEP XML file.