2.2.8.2. Structure of the "AttributeMapping(is3d) " block

The structure of the AttributeMapping(is3d) block is described below. The block can be found in the interface files if<cadname>.cfg.

  • The AttributeMapping(is3d) block contains sections (this refers to a group of keys ). The individual sections are identified with 00[48]01, 02, etc. are incremented.

  • Structure of a section:

    • Attr_Content (optional; however, either "Attr_Content" or "Attr_CopyFrom" must be present, or both)

      The key value refers to a block of the same name in the configuration file.[49]

      PARTadmin -> Category Configuration files -> Configuration file if<cadname>.cfg

      PARTadmin -> Category Configuration files -> Configuration file if<cadname>.cfg

      In the added block (tabbed page) "CadDocumentAttributes" custom or CAD-specific attributes can be declared.

      If the value is not set the content can be specified by „CopyFrom“. If both ("CopyFrom" and "Content") is specified the content of both is merged in form of a list.

    • Attr_CopyFrom (optional; either "Attr_Content" or "Attr_CopyFrom" must be present, or both)

      If the key exists and contains a value then this means that the PARTsolutions default attributes are transferred to the CAD system.

      The following values are possible:

      • default: The attributes in the $CADENAS_LANGUAGE are transferred.

      • Specify the language (german, english, french, etc.): The standard attributes are transferred in the specified language.

        [Note]Note

        If there is no translation for an attribute in the specified language, no attribute is transferred (not even the one from the $CADENAS_LANGUAGE language).

      • No entry: No standard attributes are transferred. (To explicitly pass certain attributes, please see the information in the following sections)

      [Note]Note

      The set of several languages is also possible. In some CAD systems this is already default. In other CAD systems the needed keys have to be added.

      Attr_Section_02="Der jeweilige Systemkey"
      Attr_CopyFrom_02=english
      Attr_Prefix_02=CNS_ENG_
      Attr_Section_03="Der jeweilige Systemkey"
      Attr_CopyFrom_03=italian
      Attr_Prefix_03=CNS_ITA_
      Attr_Section_04="Der jeweilige Systemkey"
      Attr_CopyFrom_04=japanese
      Attr_Prefix_04=CNS_JP_

      See Section 1.6.1.4, “Editing blocks and keys”.

    • Attr_Section

      A system key (the target [e.g. tab page] in CAD ) that should not be modified!

    • Attr_Prefix (optional)

      A prefix can be used (e.g. CNS_). If several languages are transferred then using prefixes for differentiation makes sense in any case.




[48] The first counter can be 00 or 01.

[49] In the following illustration, this is "CadDocumentAttributes" as an example.