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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
ExpertReportObject

Represents 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 report
object.

Example:

Dim relations1 As Relations
Dim RuleBase1 As ExpertRuleBaseRuntime
Dim ListComponents As ExpertRuleBaseComponentRuntimes
Dim AComponent As ExpertRuleBaseComponentRuntime
Dim NupletsList As ExpertReportObjects
Dim ANuplet As ExpertReportObject
Dim anArray () as Object
Dim anElementArray as Object

Set relations1 = part1.Relations
Set 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 true
Set NupletsList = AComponent.Succeeds
For i = 1 to AComponent.Succeeds.CountSucceed
Set 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 array
Next
Next


Parameters:

oSafeArray
The 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 long

Returns the size of the tuple concerned by this report
object.

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 on
the result of the check for a given tuple :

“True” or “False” for the tuple.
Return type:

bool