2.3.10.3.3. Block [CadDocumentAttributes] - Transfer further extra attributes

In order to transfer further extra attributes to SolidWorks, tabbed page "Custom", proceed as follows:

  1. Open the configuration file ifsolidworks.cfg.

  2. Insert any number of additional lines in the [CadDocumentAttributes] block:[54]

    #:VISFGUI;1
    [CadDocumentAttributes]
    SpecialAttribute=?GetObject("iface.calcnameservice").start(0).Format
     ("<ATTR(LINA)>").value() 

    In this example, the key "SpecialAttribute" is created and the attribute "LINA" (parts list) is transferred.

    Optionally, you can also specify the language of the attribute.

    #:VISFGUI;1
    [CadDocumentAttributes]
    SpecialAttribute=?GetObject("iface.calcnameservice").start(0).Format
    ("<ATTR(english,LINA)>").value()

  3. After the export, you will find the results in SolidWorks in the "File information " dialog box on the "User-defined " tab page.

    File information " dialog box -> "User-defined" tab page

    File information " dialog box -> "User-defined" tab page




[54] Information on the syntax can be found at Section 2.2.1, “Syntax and concepts ”.