desperate attribute help needed
desperate attribute help needed
(OP)
I am trying to vrite a VB/NXopen script to see if an attribute exitsts
in a part. If that attribute exists, I want to add other attributes
to the part, if it doesn't I want to do nothing to it.
is there a command like isStringattribute("string")?
I am using NX3 and NX5
in a part. If that attribute exists, I want to add other attributes
to the part, if it doesn't I want to do nothing to it.
is there a command like isStringattribute("string")?
I am using NX3 and NX5





RE: desperate attribute help needed
Failing to find anything specific in the help files, my first inclination would be to try to assign the value of the attribute in question to a variable. If you try to access an attribute that doesn't exist I would expect some sort of error to be thrown. You should be able to catch it with an 'on error' or 'try' 'catch' clause. If there is no error, continue adding new attributes; if an error is thrown, exit the sub/function.
RE: desperate attribute help needed