30.22. NX - "Material"-attribute error message - Exclude attributes from processing

Problem:

Warning during attribute creation:[174]

Failed to set attribute 'MATERIAL'.

Reason: The attribute is locked or is owned by another object, so its value cannot be set or changed.

Background:

The problem concerns only certain catalogs, namely those, which have an attribute named "Material". In this case the interface tries to set the attribute, which in fact is not possible, because it is a "system"-attribute.

Solution:

For copying attributes use the parameters var_exclude and var_visbile=1.

  • var_visible=1 at this place tells the interface that only visible attributes have to be processed, which solves the problem for all catalogs, which have "Material" as an internal expression.

  • With „var_exclude“ you can assign certain attributes to an "Ignore" list, whereby the problem will be solved.

Examples:

  • Attr_CopyFrom_01=default,var_exclude=A,var_visbile=1

    The variable A is explicitly set to the ignore list.

  • Attr_CopyFrom_01(isCatalog(norm))=default,var_exclude=D,var_visbile=1

    Here, the expression is only applied to the standards catalog.




[174] #41675