KWECheck.AddNewTuple()KWECheck.AddSubTupleFailed()Lets you create a report hierarchy of the "failed" sub-tuples in the tree. Arguments
ReturnTypeBoolean ExampleThe example below is based on a product containing two representations containing holes. A rule base is located under the product. It contains a check. Variable : P :VPMRepInstance Body : Let L(List) Let H (Hole) L = P.Query(“Hole”,””) If (L.Size() >=1) ThisCheck.AddTupleFailed(P) For H inside L ThisCheck.AddSubTupleFailed(H) KWECheck.AddSubTupleFailedWithWeight()KWECheck.AddSubTupleSucceeded()Lets you create a report hierarchy of the "succeeded" sub-tuples in the tree. Arguments
ReturnTypeBoolean ExampleThe example below is based on a product containing two representations and holes. A rule base is located under the product. It contains a check. Variable : P :VPMRepInstance Body : Let L(List) Let H (Hole) L = P.Query(“Hole”,””) If (L.Size() >=1) ThisCheck.AddTupleSucceeded(P) For H inside L ThisCheck.AddSubTupleSucceeded(H) KWECheck.AddTupleFailed()Lets you fill in the list used to generate the report of failed checks. Arguments
ReturnTypeBoolean ExampleVariables : H:Hole;P:Part Body : if (H.Diameter > 5mm) ThisCheck > AddTupleFailed(H,P) Note:
Note that the tuple H,P is added to the report. Each
call to this method adds a line
to the report.
KWECheck.AddTupleFailedWithComment()Lets you fill in the list used to generate the report of failed checks with a comment. Arguments
ReturnTypeBoolean ExampleH:Hole;P:Part ThisCheck->AddTupleFailedWithComment(Hole and Pad are failed,H,P) KWECheck.AddTupleFailedWithName()Lets you fill in the list used to generate the report of failed checks with a comment and a name. You can change the tuple name. SignatureKWECheck.AddTupleFailedWithName(Name: Literal, Comment: Literal [, Feature: Feature, ..]) : Boolean Arguments
ReturnTypeBoolean ExampleH:Hole;P:Part ThisCheck->AddTupleFailedWithName(Tuple Failed,Hole and Pad is failed,H,P) KWECheck.AddTupleFailedWithWeight()KWECheck.AddTupleSucceeded()KWECheck.AddTupleSucceededWithComment()Lets you fill in the list used to generate the report of succeeded checks with a comment. Arguments
ReturnTypeBoolean ExampleH:Hole;P:Part ThisCheck->AddTupleSucceededWithComment(Hole and Pad is failed,H,P) KWECheck.AddTupleSucceededWithName()Lets you fill the list used to generate the report of succeeded checks with a comment and a name. You can change the tuple name. SignatureKWECheck.AddTupleSucceededWithName(Name: Literal, Comment: Literal [, Feature: Feature, ..]) : Boolean Arguments
ReturnTypeBoolean ExampleH:Hole;P:Part ThisCheck->AddTupleSucceededWithName(Tuple Succeeded,Hole and Pad is succeeded,H,P) KWECheck.GetTuples()KWEGenericRuleBaseComponent.GetRB()KWEGenericRuleBaseComponent.GetRuleBase()KWERuleBase.GetRootsOfFacts()KWECheck.GetTuples()KWETuple.AddNewTuple()KWETuple.GetTuples() |