pycatia.cat_sch_platform_interfaces.sch_base_factory¶
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_base_factory.SchBaseFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchBaseFactoryFactory to create basic schematic objects.- create_network(i_l_cntbls: SchListOfObjects, i_lgr_rs: SchListOfObjects) SchListOfObjects ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateNetwork(SchListOfObjects iLCntbls,SchListOfObjects iLGRRs) As SchListOfObjectsCreate schematic networks for query. These are volatile objects and willnot be saved in the model.Parameters:iLCntblA list of related objects that belong to the network(CATISchAppConnectable pointers). These objects do not need to be connected.This method will do the analysis and returns the network(s) containing theseobjects.iLCntblA list of graphical images interface (CATISchGRR) pointers. Eachmember corresponds to the members in iLCntbl.oNetwork[out, IUnknown#Release] Pointer to the network analysis interfacepointers.Example:Dim objThisIntf As SchBaseFactoryDim objArg1 As SchListOfObjectsDim objArg2 As SchListOfObjectsDim objArg3 As SchListOfObjects…Set objArg3 = objThisIntf.CreateNetwork(objArg1,objArg2)
- Parameters:
i_l_cntbls (SchListOfObjects) –
i_lgr_rs (SchListOfObjects) –
- Return type:
- create_route_and_connect_to_objects(i_app_route: AnyObject, i_cntr_comp_from: SchAppConnector, i_cntr_comp_to: SchAppConnector, i_grr_comp_from: SchGRRComp, i_grr_comp_to: SchGRRComp, i_l_db2_pt_path: tuple, i_e_route_mode: int, o_sch_route: SchRoute) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateRouteAndConnectToObjects(AnyObject iAppRoute,SchAppConnector iCntrCompFrom,SchAppConnector iCntrCompTo,SchGRRComp iGRRCompFrom,SchGRRComp iGRRCompTo,CATSafeArrayVariant iLDb2PtPath,CatSchIDLRouteMode iERouteMode,SchRoute oSchRoute)Create a route and connect its extremity connectors to inputobjects.Parameters:iAppRouteApplication route (at least a feature)iCntrCompFromPointer to component connector to connect starting end of the routeto If NULL, no connection is made at this end.iCntrCompToPointer to component connector to connect end of the route to IfNULL, no connection is made at this end.iGRRCompFromPointer to first component graphical image, if NULL, the PRIMARYimage associated with component will be usediGRRCompToPointer to second component graphical image, if NULL, the PRIMARYimage associated with component will be usediLDb2PtPathA list of X-Y coordinates of points to be used for the route image.2 doubles per point. Not used if iERouteMode=SchRouteMode_AroundObject input aNULL for this caseiERouteModeRoute mode to use. Only used when iLDb2PtPath is NULL.oSchRoutePointer to the new routeExample:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObjectDim objArg2 As SchAppConnectorDim objArg3 As SchAppConnectorDim objArg4 As SchGRRCompDim objArg5 As SchGRRCompDim dbVar6(x) As CATSafeArrayVariantDim objArg9 As SchRoute…objThisIntf.CreateRouteAndConnectToObjectsobjArg1,objArg2,objArg3,objArg4,objArg5,dbVar6,CatSchIDLRouteMode_Enum,objArg9
- Parameters:
i_app_route (AnyObject) –
i_cntr_comp_from (SchAppConnector) –
i_cntr_comp_to (SchAppConnector) –
i_grr_comp_from (SchGRRComp) –
i_grr_comp_to (SchGRRComp) –
i_l_db2_pt_path (tuple) –
i_e_route_mode (int) – enum cat_sch_idl_route_mode
o_sch_route (SchRoute) –
- Return type:
tuple
- create_sch_comp_group(i_app_group: AnyObject, i_lgrr: SchListOfObjects, i_l_member: SchListOfObjects) SchCompGroupExt ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSchCompGroup(AnyObject iAppGroup,SchListOfObjects iLGRR,SchListOfObjects iLMember) As SchCompGroupExtCreate a Schematic Component Group object.Parameters:iAppGroupApplication group object (at least a feature) Optional, it could beNULL. If NULL, one will be created by the platformiLGRRA list of graphical representation. Optional, it could be NULL.iLMembersA list of initial members. Optional, it could be NULL.oSchGroupPointer to the new group.Example:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObjectDim objArg2 As SchListOfObjectsDim objArg3 As SchListOfObjectsDim objArg4 As SchCompGroupExt…Set objArg4 = objThisIntf.CreateSchCompGroup(objArg1,objArg2,objArg3)
- Parameters:
i_app_group (AnyObject) –
i_lgrr (SchListOfObjects) –
i_l_member (SchListOfObjects) –
- Return type:
- create_sch_component(i_app_component_ref: AnyObject, i_lgrr: SchListOfObjects) SchComponent ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSchComponent(AnyObject iAppComponentRef,SchListOfObjects iLGRR) As SchComponentCreate a Schematic Component reference.Parameters:iAppComponentRefApplication component reference (at least a feature)iLGRRA list of graphical representations.oSchCompPointer to the new component.Example:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObjectDim objArg2 As SchListOfObjectsDim objArg3 As SchComponent…Set objArg3 = objThisIntf.CreateSchComponent(objArg1,objArg2)
- Parameters:
i_app_component_ref (AnyObject) –
i_lgrr (SchListOfObjects) –
- Return type:
- create_sch_route_by_points(i_app_route: AnyObject, i_l_db_pt: tuple, o_sch_route: SchRoute) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateSchRouteByPoints(AnyObject iAppRoute,CATSafeArrayVariant iLDbPt,SchRoute oSchRoute)Create a Schematic Route object with a list of points.Parameters:iAppRouteApplication route (at least a feature)iLDbPtA list of X-Y coordinates of points. 2 doubles per point.oSchRoutePointer to the new routeExample:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObjectDim dbVar2(x) As CATSafeArrayVariantDim objArg4 As SchRoute…objThisIntf.CreateSchRouteByPointsobjArg1,dbVar2,objArg4
- create_sch_route_by_prim(i_app_route: AnyObject, i_lgrr: SchListOfObjects) SchRoute ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSchRouteByPrim(AnyObject iAppRoute,SchListOfObjects iLGRR) As SchRouteCreate a Schematic Route object with primitives.Parameters:iAppRouteApplication route (at least a feature)iLGRRA list of graphical primitives. pointer).oSchRoutePointer to the new routeExample:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObjectDim objArg2 As SchListOfObjectsDim objArg3 As SchRoute…Set objArg3 = objThisIntf.CreateSchRouteByPrim(objArg1,objArg2)
- Parameters:
i_app_route (AnyObject) –
i_lgrr (SchListOfObjects) –
- Return type:
- create_sch_zone(i_app_zone: AnyObject, i_lgrr: SchListOfObjects) SchZone ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSchZone(AnyObject iAppZone,SchListOfObjects iLGRR) As SchZoneCreate a Schematic Zone object.Parameters:iAppZoneApplication zone object (at least a feature)iLGRRA list of graphical representation.oSchZonePointer to the new zone.Example:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObjectDim objArg2 As SchListOfObjectsDim objArg3 As SchZone…Set objArg3 = objThisIntf.CreateSchZone(objArg1,objArg2)
- Parameters:
i_app_zone (AnyObject) –
i_lgrr (SchListOfObjects) –
- Return type:
- delete_object(i_object: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub DeleteObject(AnyObject iObject)Delete a schematic object.Parameters:iObjectinterface pointer to the object to be deletedExample:Dim objThisIntf As SchBaseFactoryDim objArg1 As AnyObject…objThisIntf.DeleteObjectobjArg1
- Parameters:
i_object (AnyObject) –
- Return type:
None