pycatia.general_knowledge_interfaces.expert_check_runtime¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.general_knowledge_interfaces.expert_check_runtime.ExpertCheckRuntime(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectGenKnowledgeInterfaces.ExpertRuleBaseComponentRuntimeExpertCheckRuntimeRuntime part of a check.The following example shows how to access the Check check1 from an existingRuleSet RS1 of the RuleBase RB1.Dim CATDocs As DocumentSet CATDocs = CATIA.DocumentsDim partdoc As PartDocumentSet partdoc = CATDocs.Add(“CATPart”)Dim part As PartSet part = partdoc.PartDim relations As RelationsSet relations = part.RelationsDim Rulebase As ExpertRuleBaseRuntimeSet RuleBase = relations.Item(“RB1”)Dim Ruleset As ExpertRuleSetRuntimeSet RuleSet = RuleBase.RuleSet.ExpertRuleBaseComponentRuntimes.Item(“RS1”)Dim Check1 As ExpertCheckRuntimeSet Check1 = RuleSet.ExpertRuleBaseComponentRuntimes.Item(“Check1”)See also:Relations, ExpertRuleBase- property automatic_correct: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AutomaticCorrect() As booleanReturns or sets the status of the automatic correction facility. When setto TRUE, the check automatically calls the user function defined byput_CorrectFunction when it fails.
- Return type:
bool
- property check_edition: ExpertCheck¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CheckEdition() As ExpertCheck (Read Only)Returns the editable object corresponding to this check. Be careful that,according to your licence, or the type of check you’re handling, you may nothave the right to edit the check.Example:Dim aCheckEdition As ExpertCheckSet aCheckEdition = aCheckRuntime.CheckEditionIf not(aCheckEdition is Nothing) ThenCATIA.SystemService.Print aCheckEdition.BodyEnd if
- Return type:
- correct() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Correct()Applies the “correction” function on failed elements.
- Return type:
None
- property correct_function: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CorrectFunction() As CATBSTRReturns or sets the body to be called in order to correct the check.
- Return type:
str
- property correct_function_comment: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CorrectFunctionComment() As CATBSTRReturns or sets the comment of the correct function of the check.
- Return type:
str
- property correct_function_type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CorrectFunctionType() As longReturns or sets the type of the body to be called in order to correct thecheck.1Visual Basic2Comment3Http4User Function
- Return type:
int
- property failures: ExpertReportObjects¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Failures() As ExpertReportObjects (Read Only)Returns the list of the tuples that don’t satisfy this check.
- Return type:
- property help: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Help() As CATBSTRReturns or sets the contextual help of the check object.
- Return type:
str
- highlight() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Highlight()Highlights the Failures on the check.
- Return type:
None
- property justification: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Justification() As CATBSTRReturns or sets the reason why the check was overridden.
- Return type:
str
- property priority: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Priority() As doubleReturns or sets the priority of the check. The priority of expert checksindicates the order in which the checks are evaluated. Checks with the samepriority are evaluated in the order of their creation.
- Return type:
float
- status() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Status() As longReturns the Status of the check.Example:Dim Check1 As ExpertCheckSet Check1 = RuleSet.ExpertRuleBaseComponentRuntimes.Item(“Check1”)status = Check1.Status ()Returns:1=OK, 0=KO.
- Return type:
int
- property succeeds: ExpertReportObjects¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Succeeds() As ExpertReportObjects (Read Only)Returns the list of the tuples that satisfy this check.
- Return type: