Launching a Check Correction Method

You can create checks containing a Visual Basic correction method to make the invalid features fulfill the check.


Before you begin: Refer to the Sample topic to create the model you need to perform this scenario.
Related Topics
Creating an Expert Check
Performing a Check Analysis
  1. Right-click Hole.1 and select Properties. In the Update Status frame, check the Deactivated check box. Click OK to close the window.

  2. Access the Knowledge Expert workbench, then click Expert Check . In the dialog box which is displayed, enter a check name and a comment, then click OK.

    The Expert Check Editor is displayed.

  3. Select the Condition tab and enter the check below:

    (for all)
     H:Hole H.Activity == true

  4. In the Correction tab, select Visual Basic Language as correction method and enter the script below into the edition box:

    Dim oPart1 As Part Set oPart1 = H.Parent.Parent.Parent.Parent oPart1.Activate H    oPart1.Update

  5. Select the Report tab and enter the text below into the Help Message edition box:

    Checks that all the holes are activated

  6. Click OK to add the check to the rule base, then click Solve to solve the rule base.

    In the specification tree, the check icon is red indicating that not all the part holes are activated.

  7. Right-click Check.1 and select Check.1 object > Correct function.

    In the specification tree, the check icon is green indicating that all the part holes are activated.