pycatia.general_knowledge_interfaces.expert_rule¶
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_rule.ExpertRule(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectGenKnowledgeInterfaces.ExpertRuleBaseComponentRuntimeGenKnowledgeInterfaces.ExpertRuleRuntimeExpertRuleRepresents the edition part of a rule.The following example shows how access the Rule Rule1 from an existing RuleSetRS1 of the RuleBase RB1Dim 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.ExpertRuleBaseComponentRuntimes.Item(“RS1”)Dim Rule1 As ExpertRuleRuntimeSet Rule1 = RuleSet.ExpertRuleBaseComponentRuntimes.Item(“Rule1”)See also:Relations, ExpertRuleBase- property body: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Body() As CATBSTRReturns or sets the string that defines the body of a Rule.For instance: “if ( HDiameter > 20mm ) HActivity = FALSE”
- Return type:
str
- property language: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Language() As longReturns or sets the language of a rule.
- Return type:
int
- property variables: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Variables() As CATBSTRReturns or sets the variables scope of the a Rule. For instance: “H:Hole;P: Pad”
- Return type:
str