pycatia.cat_plant_ship_interfaces.psp_logical_line¶
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.cat_plant_ship_interfaces.psp_logical_line.PSPLogicalLine(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCATPlantShipInterfaces.PspGroupPspLogicalLineRepresents the logical line.Role: To query the logical line object’s from/to members.- get_from_to(o_list_from_major: PSPListOfObjects, o_list_from_minor: PSPListOfObjects, o_list_to_major: PSPListOfObjects, o_list_to_minor: PSPListOfObjects) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetFromTo(PspListOfObjects oListFromMajor,PspListOfObjects oListFromMinor,PspListOfObjects oListToMajor,PspListOfObjects oListToMinor)Retrieves the lists of major and minor from/to members from thisline.The members retrieved are all PspGroupable objects.Parameters:oListFromMajorThe list of major from membersoListFromMinorThe list of minor from membersoListToMajorThe list of major to membersoListToMinorThe list of minor to membersExample:Dim objThisIntf As PspLogicalLineDim objArg1 As PspListOfObjectsDim objArg2 As PspListOfObjectsDim objArg3 As PspListOfObjectsDim objArg4 As PspListOfObjects…objThisIntf.GetFromTo objArg1, objArg2, objArg3,objArg4
- Parameters:
o_list_from_major (PSPListOfObjects) –
o_list_from_minor (PSPListOfObjects) –
o_list_to_major (PSPListOfObjects) –
o_list_to_minor (PSPListOfObjects) –
- Return type:
None
- get_from_to_info_array_max_size() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetFromToInfoArrayMaxSize() As longReturns the maximum possible size of the from-toinformation.Returns:The maximum possible size of the array to hold the information returnedby GetFromToInformationExample:Dim objThisIntf As PspLogicalLineDim intValueMaxSize As Integer…intValueMaxSize = objThisIntf.GetFromToInfoArrayMaxSize
- Return type:
int
- get_from_to_information(o_from_to_label: tuple, o_ft_major: tuple, o_ft_minor: tuple, o_size_of_output: int) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetFromToInformation(CATSafeArrayVariant oFromToLabel,CATSafeArrayVariant oFTMajor,CATSafeArrayVariant oFTMinor,long oSizeOfOutput)Retrieves the from/to information of a logical line.Parameters:oFromToLabelThe array of labels (“From” or “To”)oFTMajorThe array of from/to major IDsoFTMinorThe array of from/to minor IDsThesize of the output arraysExample:Dim objThisIntf As PspLogicalLineDim strFromToLabel(20) As StringDim strFromToMajor(20) As StringDim strFromToMinor(20) As StringDim intValueMaxSize As IntegerintValueMaxSize = objThisIntf.GetFromToInfoArrayMaxSize…‘—- make sure the array size if big enoughIf (intValueMaxSize ≤ 20) ThenobjThisIntf.GetFromToInformation _strFromToLabel, strFromToMajor, strFromToMinor,intValueMaxSizeEnd IfThe following table can then be filled with the outputarrays.From/To | F/T Major | F/T MinorstrFromToLabel(i) | strFromToMajor(i) |strFromToMinor(i)
- Parameters:
o_from_to_label (tuple) –
o_ft_major (tuple) –
o_ft_minor (tuple) –
o_size_of_output (int) –
- Return type:
String