pycatia.general_knowledge_interfaces.expert_report_object¶
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_report_object.ExpertReportObject(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectExpertReportObjectRepresents the ExpertReportObject object.- get_tuple(o_safe_array: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub getTuple(CATSafeArrayVariant oSafeArray)Returns a tuple (a collection of objects) concerned by this reportobject.Example:Dim relations1 As RelationsDim RuleBase1 As ExpertRuleBaseRuntimeDim ListComponents As ExpertRuleBaseComponentRuntimesDim AComponent As ExpertRuleBaseComponentRuntimeDim NupletsList As ExpertReportObjectsDim ANuplet As ExpertReportObjectDim anArray () as ObjectDim anElementArray as ObjectSet relations1 = part1.RelationsSet RuleBase1 = relations1.Item(“RuleBase”)Set ListComponents = RuleBase1.RuleSet.ExpertRuleBaseComponentRuntimes‘ Let’s get a check ..Set AComponent = ListComponents.Item(“CheckOnHoles”)‘ .. and let’s see what makes it trueSet NupletsList = AComponent.SucceedsFor i = 1 to AComponent.Succeeds.CountSucceedSet ANuplet = AComponent.Succeeds.SucceedItem(i)NupletSize = ANuplet.getTupleSize()ReDim anArray (NupletSize)ANuplet.getTuple(anArray)For j = LBound(anArray) to UBound(anArray)Set anElementArray = anArray(j) ‘ a hole‘ .. some action on the element of the arrayNextNextParameters:oSafeArrayThe collection of objects.
- Parameters:
o_safe_array (tuple) –
- Return type:
None
- get_tuple_size() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func getTupleSize() As longReturns the size of the tuple concerned by this reportobject.Returns:Size of the tuple
- Return type:
int
- property validity: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Validity() As boolean (Read Only)Returns the validity of a check for a given tuple. The result depends onthe result of the check for a given tuple :“True” or “False” for the tuple.
- Return type:
bool