Knowledge Expert

The Knowledge Expert language is designed to create expert checks and rules relying on types and functions.

KWERuleBaseComponent

This section provides you with information about KWERuleBaseComponent.

Description

Type enabling you to access the For All field or the Body of the rule or the check in Read only mode.

Inheritance path

Standard > Mechanical Feature > KnowledgeExpert > KweGenericRuleBaseComponent

Attribute

BodyString: Contains the check or rule body.

Language: Corresponds to the language of the check: 1 for the Knowledge Expert language, 2 for Visual Basic, and 3 for KWE Advanced Language.

VariableString: Variable specified in the For All field.

KWERuleBase

This section provides you with information about KWERuleBase.

Description

Type describing the rule base created when accessing the Knowledge Expert icon.

Inheritance path

Standard > Feature > KnowledgeExpert > KweGenericRuleBaseComponent > KnowledgeExpert > KweRuleSet

KWECheck

This section provides you with information about KWECheck.

Description

Type describing the checks created when clicking the Expert Check icon.

Inheritance path

Standard > Feature > KnowledgeExpert > KweGenericRuleBaseComponent > KnowledgeExpert > KWERuleBaseComponent

Attributes and Methods

AddTupleFailed() Method allowing you to fill in the list used to generate the report of failed checks.
AddTupleSucceeded() Method allowing you to fill in the list used to generate the report of succeeded checks.

Example

Variables : H:Hole;P:Part
					Body : if (H.Diameter > 5mm)
					ThisCheck > AddTupleFailed(H,P) 
					
Note that the tuple H,P is added to the report. Each call to method addTupleFailed or AddTupleSucceeded adds a line to the report.

CorrectFunction Enables you to modify the string contained in the Correct tab of the Expert Check Editor.
AddTupleFailedWithCommen Method allowing you to fill in the list used to generate the report of failed checks with a comment. Arguments: - Comment: comment added to failed tuples - Features: failed tuples (variable argument ) Example : Variables:
 H:Hole;P:Part
					ThisCheck->AddTupleFailedWithComment(Hole and Pad are failed,H,P)
AddTupleSucceededWithComment Method allowing you to fill in the list used to generate the report of succeeded checks with a comment. Arguments: - Comment : Comment added to succeeded tuples - Features : Succeeded tuples (variable argument ) Example: Variables:
H:Hole;P:Part
					ThisCheck->AddTupleSucceededWithComment(Hole and Pad is failed,H,P)
AddTupleFailedWithName Method allowing you to fill in the list used to generate the report of failed checks with a comment and a name. You can change the tuple name. Arguments : - Name: Name displaying into the immersive report. - Comment : Comment added to failed tuples - Features : Failed tuples (variable argument ) Example : Variables:
H:Hole;P:Part
					ThisCheck->AddTupleFailedWithName(Tuple Failed,Hole and Pad 
					is failed,H,P)
AddTupleSucceededWithName Method allowing you to fill in the list used to generate the report of succeeded checks with a comment and a name. You can change the tuple name. Arguments : - Name : name displaying into the immersive report. - Comment : comment added to succeeded tuples - Features : succeeded tuples (variable argument ) Example : Variables:
H:Hole;P:Part
					ThisCheck->AddTupleSucceededWithName(Tuple Succeeded,Hole 
					and Pad is succeeded,H,P)
CorrectFunctionComment Enables you to modify the correct function comment in the Expert Check Editor.
CorrectFunctionType Real enabling you to modify the type of the correct function in the Check Editor.
Help Enables you to modify the help message in the Check editor.

KWERule

This section provides you with information about KWERule.

Description

Type describing the rules that you create when clicking the Expert Rule icon.

Inheritance path

Standard > Feature > KnowledgeExpert > KweGenericRuleBaseComponent > KnowledgeExpert > KWERuleBaseComponent

Attribute

Priority: Indicates the rule priority level.

KWERuleSet

This section provides you with information about KWERuleSet.

Description

Type describing the rule set that you create when clicking the RuleSet icon or when creating an expert check or rule.

Inheritance path

Standard > Feature > KnowledgeExpert > KweGenericRuleBaseComponent

Attribute

DirectChildren Attribute of List type enabling you to retrieve the items located below the ruleset.

KWEGenericRuleBaseComponent

This section provides you with information about KWEGenericRuleBaseComponent.

Description

Type enabling you to reference the Knowledge Expert objects.

Inheritance path

Standard > Mechanical Feature

Attribute

Activated: Indicates if the sub-components of the rule base are activated. Comment: Shows the comments appearing when creating the expert rule or the expert check and that can be modified using the Edit > Properties menu in the Knowledge Expert workbench.