Precautions for UG\NX secondary development attribute update UF_ATTR_assign

Author of the article: Caspian
Source Website: https://blog.csdn.net/WangPaiFeiXingYuan


Introduction:

        Connect property values ​​to expressions. If a constant-valued property with the same name already exists in the original part, it will cause property connection to expression to fail and no error value will be returned. Succeeds if a property of the same name does not exist for the original part, or if a property of the join expression of the same name exists. Updating an existing attribute with a different type of attribute value will also fail, which will return an error value. The solution to this problem is put in "UG\NX Secondary Development Attribute Value Connected to Expression". The function has been encapsulated and can be used directly. Welcome to read.

Effect:

      

 code:

The relevant code is in the following two articles:

Guess you like

Origin blog.csdn.net/WangPaiFeiXingYuan/article/details/132077364