2.2.8.5.2. Attribute mapping restricted to a special project

Do you want to transfer the value of a specific variable to an attribute on the CAD system side for a specific project?

  1. Check whether the key isProjectFile is declared under $CADENAS_SETUP, in the configuration file ifacecommon.cfg, in the block [CATEGORIES].

    isProjectFile=InStr(GetObject("iface.calcnameservice").start
    ("DOC").Format("<PROJECTNAME(0)>").value(),"%0",1)>0

    Key "isProjectFile"

    Key "isProjectFile"

  2. Now you can define certain projects with the following entry in a CAD specific configuration file:

    ATTRIBUTENAME(isProjectFile(din_975.prj))=?GetObject("iface.calcnameservice")
    .start(0).Format("<ATTR(L)>").value()

    Example entry in ifadeskinv.cfg

    Example entry in ifadeskinv.cfg

    In the example in hand the attribute "L" is mapped to the CAD attribute "Menge" - if the project DIN 975 is transferred.