Creating an Expert Check Using the Knowledge Advanced Language

You can create an Expert Check using the Knowledge Language, the Knowledge Advanced Language or Visual Basic. In this scenario, you are going to create a Check using the Knowledge Advanced Language that looks for the tapered holes into which you will not be able to insert a screw.


Before you begin: Refer to the Sample topic to create the model you need to perform this scenario.
Related Topics
About Expert Checks
Knowledge Expert Language
  1. Click and select Knowledgeware > Rules > Knowledge Expert.

  2. Click Expert Check .

    The Expert Check Editor dialog box is displayed.

  3. In the Language scrolling list, select the Knowledge Advanced Language . Click OK.

  4. Double-click the For All field , and select the feature type that you want to apply to the expert rule. The following syntax must be applied: Pad1:Pad.

  5. Copy/Paste the code below into the edition box and click OK when done:



  6. Click Solve .

    The check icon turns to red indicating that the check failed.

  7. Right-click the rule base in the specification tree, and select RuleBase object > Report..., or click Report .

    The check icon turns to red indicating that the check failed. Select the directory and click OK. The report is displayed.

    Important: You can now create a check using the Knowledge Advanced language.

    Note:

    You can use local variables in your checks/rules using the let keyword.You can use two new methods to fill in the list of succeeded and failed objects for the report: AddTupleFailed and AddTupleSucceeded. You can also use the List function.You can now use the if...then.. else, for, and while constructs in your check/rule bodies. For more information see, Knowledge Expert Language