30.23. NX - Evaluation of template attribute types and adjustment at export

As of NX 8 and PARTsolutions v9.08 the type of attributes available in the template is evaluated and adjusted during the export.[175]

The attribute type from the template is evaluated, and is set a) either with the default value „String“, if there was no type explicitly determined for the respective attribute in the block [CadDocumentAttributes], or b) with the determined type.

If, for example, the attribute "ERP_MASSE" is transferred without type definition, then it appears as type "String" in NX.

The following describes how to set the attribute type in the block [CadDocumentAttributes]:

  1. At first the attribute is set with the desired value. The value can be fixed or be specified by an expression like "?_ATTR("NB")" for example.

  2. Then, in a second line the desired category is set.

    Example:

    [CadDocumentAttributes]
    
    TestAttribute=42 
    TestAttribute.custom=Category.TestCategory
    
    TestAttribute2=1
    TestAttribute2.custom=Category.TestCategory

  3. Optionally you can set the attribute type, behind the category, separated by comma. If no type is specified, then the type will be "String" by default.

    Example:

    [CadDocumentAttributes]
    
    TestAttribute=42 
    TestAttribute.custom=Category.TestCategory, Type.Integer
    
    TestAttribute2=1
    TestAttribute2.custom=Category.TestCategory, Type.number
    

    The following "custom" type values are supported ("string" is default):

    • string, time (String)

    • boolean

    • integer

    • double, number, float, real (Number)

  4. After part export the attribute is found in the "Component Properties" dialog box, in the specified category "TestCategory" (name exemplarily).




[175] #44041