Adding Custom Attributes

Use the following steps to add a custom attribute, for example Material in AutoCAD, and map it in ENOVIA.

  1. On the AutoCAD side:

    1. Open a part having custom attributes in AutoCAD and choose File > Properties > Custom.
    2. Add a Custom attribute called Material (text attribute) and assign Aluminium as the value.

  2. On the ENOVIA side:

    1. Define an attribute in ENOVIA called Material(string type). You can also use a different name.
    2. Add the Material attribute to the relevant ENOVIA types. In this case the ENOVIA types is ACAD Drawing
    3. Map the Material attribute in the MCADInteg-CADToMxAttribMapping attribute of the Global Configuration Object to support attribute transfer from AutoCAD to ENOVIA. In this case the mapping will be:
      all,Material|all,Material
      
    4. Map the Material attribute in the MCADInteg-MxToCADAttribMapping attribute of the current Global Configuration Object to support attribute transfer from ENOVIA to AutoCAD. In this case the mapping will be:
      all,Material|all,Material
      

    To list the available GCOs with their Bus ID and revision, run the following command

    MQL>temp query bus *Global* * * select id;

    To modify a GCO attribute from a GCO, run the following command

    MQL>modify bus <busname> <attributename> "<attribute value>";

    For example, to modify GCO attributes for Connector for AutoCAD GCO with Bus ID 12345,

    MQL>modify bus 12345 MCADInteg-RenameFilesInServer True;

    Tip: For modifying attributes with multiline values, use Notepad++ or any text editor to specify the command with multi-line values on multiple lines with each value in double quotes. Copy paste the entire command to MQL command line to run the command.

    Using the settings performed, if a user sets Material attribute in AutoCAD, then the attribute is transferred from and to ENOVIA.