Skip to Content
avatar image
Former Member

Set Reference Option "With no check option

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 13, 2016 at 12:17 PM

    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.


    Add comment
    10|10000 characters needed characters exceeded

    • 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").