Do we have a utility for removing (or at least make the values of the attribute Null) user specific attributes from an assembly? Also if possible then we would like to remove the part history as well.(purpose:- it is a customer data and we would not like to publish any customer specific information)
Regarding clearing the part history you have the utility "part_utility" with the option "anonymize" : https://docs.plm.automation.siemens.com/tdoc/nx/12.0.2/nx_help#uid:xid1128423:index_command_line_uti...
If you've got some part attributes (let's say "PART AUTHOR") with the name of your customer employees, you'll have to developp a custom program to delete these attributes. It's quite simple and you'll find example on GTAC. let's say this one in C++ : https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&q=delete+part+attribute... "Sample NX Open C++ program : delete a specific part attribute".
Unfortunately i have virtually no skills on programming so just wanted to know if there are any already available utility for the attribute deletion .
Can anyone help me with a query?
i have managed to get together a vb code that goes through the assembly and it's components and then delete user attributes but is there a way by which i can delte all the user attributes in one go (i mean all the attributes under the No Category )
As of now i have tried this by specifying attributes in the code
But there are thousands of parts and sub-assemblies and with their own attributes so virtually making it impossible to specify everything in the code
Is there a syntax i can use for deleting the attributes under the no category
I tried something like this
but getting error
I suggest looking into the .GetUserAttributes method. This will return the .AttributeInformation on all the user attributes; this will give you access to the category, type, and other information of each user attribute. Based on this information, you can take action as necessary.
Thanks a lot Cowski.... that is great .. sorry i lack in VB skills so might need to take some help ...the vb code i showed was just an iteration of copy and paste job from some old VB codes. Nevertheless i will still give it a shot.
Note the "DB_*" attributes look like you are using Teamcenter.
The values for these may (or more likely, may not) be able to be changed in NX due to the Teamcenter attribute mapping rules - you would likely have to change the TC properties, then open & save the part(s).
I would *assume* that if you export the assembly to native mode, you can delete these attributes (but I am not 100% sure).
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
Thanks a lot Ken,
Actually i am in native NX only. The assembly was initially exported from TC and so retains those DB_ attributes i guess.
I am trying to get Cowski suggestions into action.
Have a nice weekend to all of you.