on 06-07-2016 6:19 AM
I need to set all references "check option" to "with no check option" within a PDM file. Does anyone have a VB Script to perform this task?
The only option I find in the PDM metamodel is the 'Check on Commit', which appears to be specific to SQLAnywhere.
Which DBMS are you referring to?
Regardless, you do not need a script. To change all occurrences, all you need to do is use the 'Model/References' object list and add the attribute to the list using the 'Customize Columns and Filter' button. Once saved, you will find the attribute listed as an attribute in the references in the list. Select all rows and then just change the setting of the attribute you want. The same attribute for all references will now be changed. Select the OK or Apply buttons to save the change.
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps the best way to implement this is to use Philip's script as the Autofix in a custom Model Check.
The model check would report an error or warning if obj.GetExtendedAttribute("CheckOption") is not "with no check option"; the autofix code would be obj.SetExtendedAttribute("CheckOption","with no check option").
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.