pycatia.cat_sch_platform_interfaces.sch_compatible¶
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_sch_platform_interfaces.sch_compatible.SchCompatible(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchCompatibleProvides connecting rule to schematic objects.- get_best_cntr_for_route(i_db2_placement_pt: tuple, i_grr: SchGRR, i_lok_cntrs: SchListOfObjects, o_db2_cntr_pt: SchListOfDoubles, o_best_cntr: SchAppConnector) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetBestCntrForRoute(CATSafeArrayVariantiDb2PlacementPt,SchGRR iGRR,SchListOfObjects iLOKCntrs,SchListOfDoubles oDb2CntrPt,SchAppConnector oBestCntr)Find the best-fit connector to be used to connect a routeto.Parameters:iDb2PlacementPtX-Y coordinates of the target (component or route) graphicselection point.iGRRPointer to the graphical image of a component or to the primitiveof a routeiLOKCntrsA list of compatible and available connectors on the component.Members are CATISchAppConnector interface pointers. This is an Output ofIsTargetOKForRouteoDb2CntrPtX-Y coordinates of the best-fit connector point.oBestCntrBest-fit connectorExample:Dim objThisIntf As SchCompatibleDim dbVar1(2) As CATSafeArrayVariantDim objArg2 As SchGRRDim objArg3 As SchListOfObjectsDim objArg4 As SchListOfDoublesDim objArg5 As SchAppConnector…objThisIntf.GetBestCntrForRoutedbVar1,objArg2,objArg3,objArg4,objArg5
- Parameters:
i_db2_placement_pt (tuple) –
i_grr (SchGRR) –
i_lok_cntrs (SchListOfObjects) –
o_db2_cntr_pt (SchListOfDoubles) –
o_best_cntr (SchAppConnector) –
- Return type:
tuple
- get_best_fit_insert_info(i_db2_placement_pt: tuple, i_insert_compat_info: AnyObject, io_insert_info: AnyObject, i_b_yes_cycle_all_solns: bool) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetBestFitInsertInfo(CATSafeArrayVariantiDb2PlacementPt,AnyObject iInsertCompatInfo,AnyObject ioInsertInfo,boolean iBYesCycleAllSolns)Find the best-fit connector(s) to be used for inserting a component into aroute.Parameters:iDb2PlacementPtX-Y coordinates of the target component graphical selection point.iInsertCompatInfoPointer to an internal class which contains structured informationThis is an output of IsTargetOKForInsertioInsertInfoPointer to an internal class which contains structured informationfor how to inesrt a component into a route. Caller must initialize this pointerto NULL when calling this code the first time. This is used as an input toCATISchComponent::InsertIntoRouteWithInfoiBYesCycleAllSolnsdefault is FALSE, and ioInsertInfo is an output for the best fitsolution. When there are more than one internal flows that can be used forinsertion, this routine will choose the best solution in the followingorder:linear internal flow parallel to x-axislinear internal flow parallel to y-axiscorner internal flowothersIf iBYesCycleAllSolns =TRUE, then the implementation will calculateall possible solutions and allow the caller to recall this code with the sameioInsertInfo. if and only if current input iDB2PlacementPt is the the same asthe previous one . Otherwise, the insertion position of the component on theroute is different and the previously calculated solutions are all invalid forthe current call. If the iDB2PlacementPt is the same as the previous one andiBYesCycleAllSolns is TRUE, this code will set the internal data ioInsertInfoaccordingly, so that when used in InsertIntoRouteWithInfo, the next solutionwill be used. For example, say there are 3 possible solutions and we call themsolution1, solution2 and solution3. Call this code the first time andInsertIntoComponentWithInfo will use solution1. Call this code the second time(provided that CntrTgt remains the same) and solution2 will be used. The thirdtime, solution3. The fourth time, solution1 and so one.Example:Dim objThisIntf As SchCompatibleDim dbVar1(2) As CATSafeArrayVariantDim objArg2 As AnyObjectDim objArg3 As AnyObjectDim bVar4 As boolean…objThisIntf.GetBestFitInsertInfodbVar1,objArg2,objArg3,bVar4
- get_best_fit_place_info(i_db2_placement_pt: tuple, i_place_compat_info: AnyObject, io_place_info: AnyObject, i_b_yes_cycle_all_solns: bool) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetBestFitPlaceInfo(CATSafeArrayVariantiDb2PlacementPt,AnyObject iPlaceCompatInfo,AnyObject ioPlaceInfo,boolean iBYesCycleAllSolns)Find the best-fit connector(s) to be used for placing a component andconnecting it to another.Parameters:iDb2PlacementPtX-Y coordinates of the target component graphical selection point.iPlaceCompatInfoPointer to an internal class which contains structured informationThis is an output of IsTargetOKForPlaceioPlaceInfoPointer to an internal class which contains structured informationfor how to place a component. Caller must initialize this pointer to NULL whencalling this code the first time. This is used as an input toCATISchComponent::PlaceOnComponentWithInfoiBYesCycleAllSolnsdefault is FALSE, and ioPlaceInfo is an output for the best fitsolution. This solution will connect the compatible Target connector closest tothe iDb2PlacementPt (call this CntrTgt) and the source connector that isclosest to the origin (in position relative to ditto axis). IfiBYesCycleAllSolns =TRUE, then the implementation will calculate all possiblesolutions and allow the caller to recall this code with the same ioPlaceInfo,if and only if the compatible Target connector closest to the iDb2PlacementPtis the same as the previous one . By doing this, this code will set theinternal data ioPlaceInfo accordingly, so that when used inPlaceOnComponentWithInfo, the next solution will be used. For example, saythere are 3 possible solutions and we call them solution1, solution2 andsolution3. Call this code the first time and PlaceOnComponentWithInfo will usesolution1. Call this code the second time (provided that CntrTgt remains thesame) and solution2 will be used. The third time, solution3. The fourth time,solution1 and so one.Example:Dim objThisIntf As SchCompatibleDim dbVar1(2) As CATSafeArrayVariantDim objArg2 As AnyObjectDim objArg3 As AnyObjectDim bVar4 As boolean…objThisIntf.GetBestFitPlaceInfodbVar1,objArg2,objArg3,bVar4
- is_target_ok_for_insert(i_comp_info: AnyObject, o_insert_compat_info: AnyObject, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub IsTargetOKForInsert(AnyObject iCompInfo,AnyObject oInsertCompatInfo,boolean oBYes)Query whether an object is compatible to be inserted into a route Thismethod is used when placing a component.Parameters:iCompInfoPointer to an internal class which contains structured informationof “this” component for placement. This is an output ofCATISchComponent::QueryPlaceAbilityoInsertCompatInfoPointer to an internal class which contains structured informationfor “this” component and target route (the one in question) This is used as aninput to GetBestFitInsertInfooBYesIf TRUE, the component is OK to be connected to a route.Example:Dim objThisIntf As SchCompatibleDim objArg1 As AnyObjectDim objArg2 As AnyObjectDim bVar3 As boolean…objThisIntf.IsTargetOKForInsertobjArg1,objArg2,bVar3
- is_target_ok_for_place(i_grr_target: SchGRRComp, i_comp_info: AnyObject, o_place_compat_info: AnyObject, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub IsTargetOKForPlace(SchGRRComp iGRRTarget,AnyObject iCompInfo,AnyObject oPlaceCompatInfo,boolean oBYes)Query whether an object is compatible to be connected to another componentThis method is used when placing a component.Parameters:iGRRTargetPointer to the graphical image of the component in question (thetarget component to be connected to)iCompInfoPointer to an internal class which contains structured informationof “this” component for placement. This is an output ofCATISchComponent::QueryPlaceAbilityoPlaceCompatInfoPointer to an internal class which contains structured informationfor “this” component and target component (the one in question) This is used asan input to GetBestFitPlaceInfooBYesIf TRUE, the component is OK to be connected to a route.Example:Dim objThisIntf As SchCompatibleDim objArg1 As SchGRRCompDim objArg2 As AnyObjectDim objArg3 As AnyObjectDim bVar4 As boolean…objThisIntf.IsTargetOKForPlaceobjArg1,objArg2,objArg3,bVar4
- Parameters:
i_grr_target (SchGRRComp) –
i_comp_info (AnyObject) –
o_place_compat_info (AnyObject) –
o_b_yes (bool) –
- Return type:
None
- is_target_ok_for_route(i_route_cntr_class_type: str, i_grr_target: SchGRR, o_lok_cntrs: SchListOfObjects, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub IsTargetOKForRoute(CATBSTR iRouteCntrClassType,SchGRR iGRRTarget,SchListOfObjects oLOKCntrs,boolean oBYes)Query whether an object is compatible to be connected to a route. Thismethod is used when routing a route.Parameters:iRouteCntrClassTypeClass type of a schematic route connector.iGRRTargetPointer to the graphical image of a target component or to theprimitive of a target routeoLOKCntrsA list of compatible and available connectors on the component orroute (members are CATISchAppConnector interface pointers) This is used as aninput to GetBestCntrForRouteoBYesIf TRUE, the component is OK to be connected to a route.Example:Dim objThisIntf As SchCompatibleDim strVar1 As StringDim objArg2 As SchGRRDim objArg3 As SchListOfObjectsDim bVar4 As boolean…objThisIntf.IsTargetOKForRoutestrVar1,objArg2,objArg3,bVar4
- Parameters:
i_route_cntr_class_type (str) –
i_grr_target (SchGRR) –
o_lok_cntrs (SchListOfObjects) –
o_b_yes (bool) –
- Return type:
None