pycatia.cat_sch_platform_interfaces.sch_route¶
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_route.SchRoute(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchRouteManage a schematic route data.- add_points(i_grr: SchGRRRoute, i_l_db2_pt_path_to_add: tuple, i_after_which_pt_num: int) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddPoints(SchGRRRoute iGRR,CATSafeArrayVariant iLDb2PtPathToAdd,long iAfterWhichPtNum)Add a list of point to a route. Modify the route according to the routemodeParameters:iGRRgraphical primitive of the route to add points to (if NULL, assumethere is only one graphical primitive)iLDbPtPathToAddA list of X-Y coordinates of points to be added. 2 doubles perpoint.iAfterWhichPtNumThe point number to add the points after. Use 0 to indicate addingbefore the first point.Example:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim dbVar2(x) As CATSafeArrayVariantDim intVar4 As Integer…objThisIntf.AddPointsobjArg1,dbVar2,intVar4
- Parameters:
i_grr (SchGRRRoute) –
i_l_db2_pt_path_to_add (tuple) –
i_after_which_pt_num (int) –
- Return type:
tuple
- branch(i_grr_main: SchGRRRoute, i_sch_branch_route: SchRoute, i_sch_branch_route_cntr: SchAppConnector, o_branch_cntn: SchAppConnection, o_new_branch_cntr: SchAppConnector) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Branch(SchGRRRoute iGRRMain,SchRoute iSchBranchRoute,SchAppConnector iSchBranchRouteCntr,SchAppConnection oBranchCntn,SchAppConnector oNewBranchCntr)Create a branch from this route.Parameters:iGRRMaingraphical primitive of the “this” route to branch from (if NULL,assume there is only one graphical primitive)iSchBranchRouteThe route to create a branch connection to (from this route)iSchBranchRouteCntrThe extremity connector of the branchoBranchCntnThe branch connection createdoNewBranchCntrThe new branch connector created on “this” routeExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim objArg2 As SchRouteDim objArg3 As SchAppConnectorDim objArg4 As SchAppConnectionDim objArg5 As SchAppConnector…objThisIntf.BranchobjArg1,objArg2,objArg3,objArg4,objArg5
- Parameters:
i_grr_main (SchGRRRoute) –
i_sch_branch_route (SchRoute) –
i_sch_branch_route_cntr (SchAppConnector) –
o_branch_cntn (SchAppConnection) –
o_new_branch_cntr (SchAppConnector) –
- Return type:
None
- break_(i_grr: SchGRRRoute, i_db2_pt1: tuple, i_db2_pt2: tuple, o_new_sch_route: SchRoute) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Break(SchGRRRoute iGRR,CATSafeArrayVariant iDb2Pt1,CATSafeArrayVariant iDb2Pt2,SchRoute oNewSchRoute)Break a route into 2 pieces. The old route is shortened and a new route iscreated.Parameters:iGRRgraphical primitive of the route to be broken (if NULL, assumethere is only one graphical primitive)iDb2Pt1X-Y coordinates of point 1 to break the route at (this point ismandatory).iDb2Pt2X-Y coordinates of point 2 to break the route at (this point isoptional). If provided the points in between point 1 and this point will beeliminated. Point 1 is the last point of the shortened old route and point 2 isthe first point of the new route. If this point is not provided (sends in aNULL). point 1 and point 2 are the same.oNewSchRouteThe new Schematic route objectExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim dbVar2(2) As CATSafeArrayVariantDim dbVar3(2) As CATSafeArrayVariantDim objArg4 As SchRoute…objThisIntf.BreakobjArg1,dbVar2,dbVar3,objArg4
- Parameters:
i_grr (SchGRRRoute) –
i_db2_pt1 (tuple) –
i_db2_pt2 (tuple) –
o_new_sch_route (SchRoute) –
- Return type:
tuple
- compress() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Compress()Compress a the defining points of a route, removing coincidentpoints.Example:Dim objThisIntf As SchRoute…objThisIntf.Compress
- Return type:
None
- concatenate(i_sch_route1_cntr: SchAppConnector, i_sch_route2: SchRoute, i_sch_route2_cntr: SchAppConnector) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Concatenate(SchAppConnector iSchRoute1Cntr,SchRoute iSchRoute2,SchAppConnector iSchRoute2Cntr)Concatenate 2 routes into one. Only works for those that have only one linegraphic object. The first route is elongated and is modified. The second routeis deleted.Parameters:iSchRoute1CntrConnector of this route to concatenate with the second route.iSchRoute2Second route to be concatenate to the first. iSchRoute2 will bedeleted.iSchRoute2CntrConnector of second route to concatenate with the first route.Example:Dim objThisIntf As SchRouteDim objArg1 As SchAppConnectorDim objArg2 As SchRouteDim objArg3 As SchAppConnector…objThisIntf.ConcatenateobjArg1,objArg2,objArg3
- Parameters:
i_sch_route1_cntr (SchAppConnector) –
i_sch_route2 (SchRoute) –
i_sch_route2_cntr (SchAppConnector) –
- Return type:
None
- concatenate_keep_route2(i_sch_route1_cntr: SchAppConnector, i_sch_route2: SchRoute, i_sch_route2_cntr: SchAppConnector) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ConcatenateKeepRoute2(SchAppConnector iSchRoute1Cntr,SchRoute iSchRoute2,SchAppConnector iSchRoute2Cntr)Concatenate 2 routes into one. Only works for those that have only one linegraphic object. The first route is elongated and is modified. The second routeis unchanged.Parameters:iSchRoute1CntrConnector of this route to concatenate with the second route.iSchRoute2Second route to be concatenate to the first. iSchRoute2 will beunchanged.iSchRoute2CntrConnector of second route to concatenate with the first route.Example:Dim objThisIntf As SchRouteDim objArg1 As SchAppConnectorDim objArg2 As SchRouteDim objArg3 As SchAppConnector…objThisIntf.ConcatenateKeepRoute2objArg1,objArg2,objArg3
- Parameters:
i_sch_route1_cntr (SchAppConnector) –
i_sch_route2 (SchRoute) –
i_sch_route2_cntr (SchAppConnector) –
- Return type:
None
- get_extremity_cntrs(i_grr: SchGRRRoute, o_route_cntr1: SchAppConnector, o_route_cntr2: SchAppConnector) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetExtremityCntrs(SchGRRRoute iGRR,SchAppConnector oRouteCntr1,SchAppConnector oRouteCntr2)Get extremity connectors of the route.Parameters:iGRRgraphical primitive of the route to query. (if NULL, assume thereis only one graphical primitive)oRouteCntr1Route connector at first extremityoRouteCntr2Route connector at second extremityExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim objArg2 As SchAppConnectorDim objArg3 As SchAppConnector…objThisIntf.GetExtremityCntrsobjArg1,objArg2,objArg3
- Parameters:
i_grr (SchGRRRoute) –
o_route_cntr1 (SchAppConnector) –
o_route_cntr2 (SchAppConnector) –
- Return type:
None
- get_path(i_grr: SchGRRRoute, o_l_db2_pt_path: SchListOfDoubles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetPath(SchGRRRoute iGRR,SchListOfDoubles oLDb2PtPath)Get the defining points of a route.Parameters:iGRRgraphical primitive of the route get the path from (if NULL, assumethere is only one graphical primitive)oLDbPtPathA list of X-Y coordinates of points. 2 doubles per point.Example:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim objArg2 As SchListOfDoubles…objThisIntf.GetPathobjArg1,objArg2
- Parameters:
i_grr (SchGRRRoute) –
o_l_db2_pt_path (SchListOfDoubles) –
- Return type:
None
- ok_to_branch(i_grr: SchGRRRoute, i_branch_class_type: str, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToBranch(SchGRRRoute iGRR,CATBSTR iBranchClassType,boolean oBYes)Query whether it is OK to create a branch.Parameters:iGRRgraphical primitive of the route to query. (if NULL, assume thereis only one graphical primitive)iBranchClassTypeClass type of the branch to create.oBYesIf TRUE, then it is OK to create a branch from a routeExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim strVar2 As StringDim bVar3 As boolean…objThisIntf.OKToBranchobjArg1,strVar2,bVar3
- Parameters:
i_grr (SchGRRRoute) –
i_branch_class_type (str) –
o_b_yes (bool) –
- Return type:
None
- ok_to_break(i_grr: SchGRRRoute, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToBreak(SchGRRRoute iGRR,boolean oBYes)Query whether it is OK to break.Parameters:iGRRgraphical primitive of the route to query. (if NULL, assume thereis only one graphical primitive)oBYesIf TRUE, then it is OK to break the routeExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim bVar2 As boolean…objThisIntf.OKToBreakobjArg1,bVar2
- Parameters:
i_grr (SchGRRRoute) –
o_b_yes (bool) –
- Return type:
None
- ok_to_concatenate(i_grr: SchGRRRoute, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToConcatenate(SchGRRRoute iGRR,boolean oBYes)Query whether it is OK to concatenate.Parameters:iGRRgraphical primitive of the route to query. (if NULL, assume thereis only one graphical primitive)oBYesIf TRUE, then it is OK to concatenate the route with anotherExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim bVar2 As boolean…objThisIntf.OKToConcatenateobjArg1,bVar2
- Parameters:
i_grr (SchGRRRoute) –
o_b_yes (bool) –
- Return type:
None
- ok_to_modify_points(i_grr: SchGRRRoute, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToModifyPoints(SchGRRRoute iGRR,boolean oBYes)Query whether it is OK to modify (add or remove) thepoints.Parameters:iGRRgraphical primitive of the route to query. (if NULL, assume thereis only one graphical primitive).oBYesIf TRUE, then it is OK to add or remove the points from the routeExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim bVar2 As boolean…objThisIntf.OKToModifyPointsobjArg1,bVar2
- Parameters:
i_grr (SchGRRRoute) –
o_b_yes (bool) –
- Return type:
None
- remove_points(i_grr: SchGRRRoute, i_num_of_pts_to_remove: int, i_after_which_pt_num: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemovePoints(SchGRRRoute iGRR,long iNumOfPtsToRemove,long iAfterWhichPtNum)Remove points from route. Modify the route according to the routemode.Parameters:iGRRgraphical primitive of the route to remove the points from (ifNULL, assume there is only one graphical primitive)iNumOfPtsToRemoveThe number of points to be removediAfterWhichPtNumThe point number at which to start removing the point.Example:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim intVar2 As IntegerDim intVar3 As Integer…objThisIntf.RemovePointsobjArg1,intVar2,intVar3
- Parameters:
i_grr (SchGRRRoute) –
i_num_of_pts_to_remove (int) –
i_after_which_pt_num (int) –
- Return type:
None
- reshape_extremity(i_grr: SchGRRRoute, i_route_cntr: SchAppConnector, i_db2_delta_xy: tuple) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ReshapeExtremity(SchGRRRoute iGRR,SchAppConnector iRouteCntr,CATSafeArrayVariant iDb2DeltaXY)Change the position of the extremity of the route.Parameters:iGRRgraphical primitive of the route to reshape (if NULL, assume thereis only one graphical primitive)iRouteCntrRoute connector whose position is to be modified(CATISchAppConnector interface pointer).iDb2DeltaXYDelta X-Y coordinates of the extremity moveExample:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim objArg2 As SchAppConnectorDim dbVar3(2) As CATSafeArrayVariant…objThisIntf.ReshapeExtremityobjArg1,objArg2,dbVar3
- Parameters:
i_grr (SchGRRRoute) –
i_route_cntr (SchAppConnector) –
i_db2_delta_xy (tuple) –
- Return type:
tuple
- reshape_extremity2(i_e_route_mode: int, i_grr: SchGRRRoute, i_route_cntr: SchAppConnector, i_db2_pt_to_move_cntr_to: tuple) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ReshapeExtremity2(CatSchIDLRouteMode iERouteMode,SchGRRRoute iGRR,SchAppConnector iRouteCntr,CATSafeArrayVariant iDb2PtToMoveCntrTo)Change the position of the extremity of the route. Modify the routeaccording to the route mode.Parameters:iERouteModeRouting mode.iGRRgraphical primitive of the route to reshape (if NULL, assume thereis only one graphical primitive)iRouteCntrRoute connector whose position is to be modified (CATISchConnectorinterface pointer).iDb2PtToMoveCntrToX-Y coordinates of the point to move the connector to.Example:Dim objThisIntf As SchRouteDim objArg2 As SchGRRRouteDim objArg3 As SchAppConnectorDim dbVar4(2) As CATSafeArrayVariant…objThisIntf.ReshapeExtremity2CatSchIDLRouteMode_Enum,objArg2,objArg3,dbVar4
- Parameters:
i_e_route_mode (int) – enum cat_sch_idl_route_mode
i_grr (SchGRRRoute) –
i_route_cntr (SchAppConnector) –
i_db2_pt_to_move_cntr_to (tuple) –
- Return type:
tuple
- set_path(i_grr: SchGRRRoute, i_l_db2_pt_path: tuple) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPath(SchGRRRoute iGRR,CATSafeArrayVariant iLDb2PtPath)Set the defining points of a route.Parameters:iGRRgraphical primitive of the route to set the path on (if NULL,assume there is only one graphical primitive)iLDbPtPathA list of X-Y coordinates of points to be set. 2 doubles per point.Example:Dim objThisIntf As SchRouteDim objArg1 As SchGRRRouteDim dbVar2(x) As CATSafeArrayVariant…objThisIntf.SetPathobjArg1,dbVar2
- Parameters:
i_grr (SchGRRRoute) –
i_l_db2_pt_path (tuple) –
- Return type:
tuple