Submitted by Robse-ponte on Wed, 01/03/2018 - 10:12
Forums:
Hello,
I have a NX template with a dropdown menue in the part properties. Once choosen Attributes demand a new value. If I try to set back an attribute, (write " " or "nothing" into it) will still keep the old value. I also tried to create a No Value Field.
Does anyone know how to set back an attribute permanently to the value: "No Value" ?
Thank you and best regards
re: reset attribute
If it is a template attribute, you can delete it to reset the value to "no value".
Hello and thank you for your
Hello and thank you for your suggestion.
How to delete? Neither the black X button nor pressing del does work. With vb.net i tried DeleteUserAttribute. Is this the right command to bring it back to "No Value"? or is there something I don´t know?
I would be happy to know if I am on the right track and it would work with different environment? Maybe a Teamcenter issue. (Template is connected with Teamcenter) attribute is not locked..
Best regards
re: delete attribute
I have a native NX file (drawing template) that uses a string type template attribute; after assigning a value, I can use the black X button to delete the value and return it to the "no value" state. Using code, either the .DeleteUserAttribute method or the .Delete method of the CreateAttributePropertiesBuilder object works to reset the value of the attribute.
I don't know enough about teamcenter to say with confidence that it is or isn't related to the behavior that you see.