pycatia.cat_sch_platform_interfaces.sch_app_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_app_compatible.SchAppCompatible(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchAppCompatibleProvide application rules of how to connect objects.- app_is_target_ok_for_insert(i_l_comp_source_cntrs: SchListOfObjects, o_l_source_cntrs: SchListOfObjects, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AppIsTargetOKForInsert(SchListOfObjectsiLCompSourceCntrs,SchListOfObjects oLSourceCntrs,boolean oBYes)Query whether a component (source) is compatible to be inserted into thisroute. This method is used when inserting a component into a route. This mehtodshould only be implemented on a route object. For a component object, themethod should simply returns oBYes=FALSE.Parameters:iLCompSourceCntrsA list of connectors on the source component. The target (to beconnected) is “this” route.oLSourceCntrsA list of compatible and available connectors on the sourcecomponent (the input) that can be connected to the target (“this” route)(members are CATISchAppConnector interface pointers)oBYesIf TRUE, the object is OK to be connected to a route.Example:Dim objThisIntf As SchAppCompatibleDim objArg1 As SchListOfObjectsDim objArg2 As SchListOfObjectsDim bVar3 As boolean…objThisIntf.AppIsTargetOKForInsertobjArg1,objArg2,bVar3
- Parameters:
i_l_comp_source_cntrs (SchListOfObjects) –
o_l_source_cntrs (SchListOfObjects) –
o_b_yes (bool) –
- Return type:
None
- app_is_target_ok_for_place(i_l_comp_source_cntrs: SchListOfObjects, o_l_target_cntrs: SchListOfObjects, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AppIsTargetOKForPlace(SchListOfObjectsiLCompSourceCntrs,SchListOfObjects oLTargetCntrs,boolean oBYes)Query whether a component (source) is compatible to be connected to “this”object (the target, which can be a route or a component). This method is usedwhen placing a component to be connected to anotherobject.Parameters:iLCompSourceCntrsA list of connectors on the source component. The target (to beconnected) is “this” component.oLOKCntrsA list of compatible and available connectors on “this” component(the target) to be connected to the source component (the input source).(members are CATISchAppConnector interface pointers)oBYesIf TRUE, the object is OK to be connected to a route.Example:Dim objThisIntf As SchAppCompatibleDim objArg1 As SchListOfObjectsDim objArg2 As SchListOfObjectsDim bVar3 As boolean…objThisIntf.AppIsTargetOKForPlaceobjArg1,objArg2,bVar3
- Parameters:
i_l_comp_source_cntrs (SchListOfObjects) –
o_l_target_cntrs (SchListOfObjects) –
o_b_yes (bool) –
- Return type:
None
- app_is_target_ok_for_route(i_route_cntr_class_type: str, o_lok_cntrs: SchListOfObjects, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AppIsTargetOKForRoute(CATBSTR iRouteCntrClassType,SchListOfObjects oLOKCntrs,boolean oBYes)Query whether a route of the input class type can be connected to “this”object (the target, which can be a route or a component). This method is usedwhen routing a route.Parameters:iRouteCntrClassTypeClass type of a schematic route connector.oLOKCntrsA list of compatible and available connectors on this object.(members are CATISchAppConnector interface pointers)oBYesIf TRUE, the object is OK to be connected to a route.Example:Dim objThisIntf As SchAppCompatibleDim strVar1 As StringDim objArg2 As SchListOfObjectsDim bVar3 As boolean…objThisIntf.AppIsTargetOKForRoutestrVar1,objArg2,bVar3
- Parameters:
i_route_cntr_class_type (str) –
o_lok_cntrs (SchListOfObjects) –
o_b_yes (bool) –
- Return type:
None