Advanced Attribute Mapping

You can map attributes from CAD to PLM and PLM to CAD while saving an AutoCADdrawing in 3DEXPERIENCE. Use MQL commands to map the attributes.

This task shows you how to:


Before you begin: Log in to the 3DEXPERIENCE.
You can view the default attributes as below that are mapped by GCO.
  • MCADInteg-CADToMxAttribMapping

    drawing,$$Description$$|Drawing,V_description

  • MCADInteg-MxToCADAttribMapping

    Drawing,V_description|drawing,$$Description$$

Note: You can create custom attributes both at CAD side and 3DEXPERIENCE side and map them.

Map System Attributes

  1. Open a part in AutoCAD.
  2. Click Properties from File.
  3. Click Summary.
  4. Assign a value to an attribute.

    For example, enter Design Part in the text box provided against the attribute Comments

    drawing,$$Comments$$|Drawing, V_Description

    In MQL, mod bus AutoCADUPS-GlobalConfig AutoCADUPS TEAM MCADInteg-CADToMxAttribMapping drawing,$$Comments$$|Drawing, V_Description

    .

  5. Map the Description attribute in MCADInteg-MxToCADAttribMapping attribute of current Global Config Object for supporting 3DEXPERIENCE to AutoCAD attribute transfer.

    Drawing, V_Description|drawing,$$Comments$$

    In MQL, mod bus AutoCADUPS-GlobalConfig AutoCADUPS TEAM MCADInteg-MxToCADAttribMapping Drawing, V_Description|drawing,$$Comments$$;

Note: If you have used system (in case of 3DEXPERIENCE) or summary (in case of AutoCAD) attributes, envelop them by $$ for correct identification.

For example, $$drawing$$, $$Author$$

Map Custom Attributes

You can transfer value of attributes from AutoCAD to 3DEXPERIENCE and vice versa with the use of attribute mapping.

Context:

From AutoCAD to 3DEXPERIENCE

  1. At CAD side, create an AutoCAD drawing and click Custom from Properties tab.
  2. Add a custom attribute and assign a value.

    For example, assign a value to AttrName attribute.

  3. Add the attribute mapping to the object with following object identification,

    Type: AutoCADUPS-GlobalConfig

    Name: AutoCAD (UPS)

    Revision: TEAM

    Attribute to be updated: MCADInteg-CADToMxAttribMapping

    Syntax:

    • For by default attributes: CAD Type,CAD AttrName|3DEXPERIENCE Type,3DEXPERIENCE AttrName
    • For user-defined extension attributes: CAD Type,CAD AttrName|3DEXPERIENCE Type,Ext(<package>/<extension>).<3DEXPERIENCE AttrName>

    Example(by default): drawing,Description|Drawing,V_description

    Example(user-defined extension attributes): drawing,SWAttr1|Drawing,Ext(OtbIRPCConfiguration/XP_Drawing_Ext).CustoAttr1

    CustoAttr1 is the user-defined extension attribute added on type Drawing.

From 3DEXPERIENCE to AutoCAD

Add the attribute mapping to the object with following object identification,

Type: AutoCADUPS-GlobalConfig

Name: AutoCAD (UPS)

Revision: TEAM

Attribute to be updated: MCADInteg-MxToCADAttribMapping

Syntax:

  • For by default attributes: 3DEXPERIENCE Type,3DEXPERIENCE AttrName|CAD Type,CAD AttrName
  • For user-defined extension attributes: 3DEXPERIENCE Type,Ext(<package>/<extension>).<3DEXPERIENCE AttrName>|CAD Type,CAD AttrName

Example(by default): Drawing,V_description|drawing,Description

Example(user-defined extension attributes): Drawing,CustoAttr1|drawing,SWAttr1

CustoAttr1 is the user-defined extension attribute added on type Drawing.

Notes:
  • From the Platform Management Dashboard > Content tab > Collaborative Spaces Configuration Center widget > Attribute Management, administrator can add attributes to physical product types (items). Administrator can use the Data Model Customization app to add attributes to XCADModelRepReference (Family) types and Drawing types.
  • You cannot save a custom attribute into 3DEXPERIENCE server, if the custom attribute is defined as mandatory but value is not provided at save for a such a mandatory custom attribute.
  • You cannot customize attribute mapping on cloud environments.
  • You can synchronize CAD attributes at open, only if the file is downloaded. This is the case if you perform open with an empty cache or if you perform a Get of the file.
  • If you want to synchronize a CAD file with CAD attribute modification in the web, you must use the Replace by Revision command.

Map One Attribute to Many Attributes

You can map attribute from AutoCAD to many attributes from 3DEXPERIENCE.

  1. Open AutoCAD component in 3DEXPERIENCE.
  2. Enter the MQL command;

    mod bus AutoCADUPS-GlobalConfig GlobalConfig AutoCADUPS TEAM MCADInteg-CADToMxAttribMapping drawing,$$comments$$| Drawing,V_description drawing,$$comment$$| Drawing,V_versionComment

Block Attribute

You can transfer value of a block attribute from AutoCAD to 3DEXPERIENCE and vice versa with the use of attribute mapping.

CAD To MX Mapping

mod bus AutoCADUPS-GlobalConfig AutoCADUPS TEAM MCADInteg-CADToMxAttribMapping drawing,Block2:TEST02|Drawing,V_description;

MX To CAD Mapping

mod bus AutoCADUPS-GlobalConfig AutoCADUPS TEAM MCADInteg-MxToCADAttribMapping Drawing,V_description|drawing,Block2:TEST02;