pycatia.cat_sch_platform_interfaces.sch_component¶
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_component.SchComponent(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchComponentManage a schematic component.- create_component_inst(i_grr: SchGRRComp, i_db6_axis: tuple, o_new_component: SchComponent) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateComponentInst(SchGRRComp iGRR,CATSafeArrayVariant iDb6Axis,SchComponent oNewComponent)Create a component instance. The reference component must exist in currentdocumentParameters:iGRRPointer to the component graphical representation. if NULL the“Primary” graphical representation will be used.iDb6AxisX-axis of the local axis of the new instance Y-axis of the localaxis of the new instance X-Y coordinates of the orgin of the new instance. Thisaxis defines the orientation and location of the new instance in space.Optional (could be NULL). If provided, the instance will be and orientated asdefined. Else (1.0,0.0,0.0,1.0,0.0,0.0) is usedoNewComponentInterface pointer to the new component instance placed.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim dbVar2(6) As CATSafeArrayVariantDim objArg3 As SchComponent…objThisIntf.CreateComponentInstobjArg1,dbVar2,objArg3
- Parameters:
i_grr (SchGRRComp) –
i_db6_axis (tuple) –
o_new_component (SchComponent) –
- Return type:
tuple
- create_local_reference(i_document_to_put_copy_in: Document) SchComponent ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateLocalReference(Document iDocumentToPutCopyIn) AsSchComponentMake a local component reference in another document by copying an existingone in the current document.Parameters:iDocumentToPutCopyInPointer to the document to make the copy inoSchCompPointer to the copy.Example:Dim objThisIntf As SchComponentDim objArg1 As DocumentDim objArg2 As SchComponent…Set objArg2 = objThisIntf.CreateLocalReference(objArg1)
- Parameters:
i_document_to_put_copy_in (Document) –
- Return type:
- flip_connected(i_grr: SchGRRComp) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub FlipConnected(SchGRRComp iGRR)For component that is connected to another component or is inserted into aroute. This method changes the current connections on this component andconnects the component to the next compatible connector (connectors-pair incase of inserted component).Parameters:iGRRPointer to the component graphical representation object. if NULLthe first insert image found will be used.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRComp…objThisIntf.FlipConnectedobjArg1
- Parameters:
i_grr (SchGRRComp) –
- Return type:
None
- flip_horizontal(i_grr: SchGRRComp) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub FlipHorizontal(SchGRRComp iGRR)Mirror transform a component’s image about the horizontal-axis centered atthe local axis of the component. This component should not be connected to anyother object.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRComp…objThisIntf.FlipHorizontalobjArg1
- Parameters:
i_grr (SchGRRComp) –
- Return type:
None
- flip_on_line(i_grr: SchGRRComp) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub FlipOnLine(SchGRRComp iGRR)Mirror the graphical object of this component. Ths mirror line is theinserted route segment. The current connections on the component is notchanged. case of inserted component).Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRComp…objThisIntf.FlipOnLineobjArg1
- Parameters:
i_grr (SchGRRComp) –
- Return type:
None
- flip_vertical(i_grr: SchGRRComp) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub FlipVertical(SchGRRComp iGRR)Mirror transform a component’s image about the vertical-axis centered atthe local axis of the component. This component should not be connected to anyother object.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRComp…objThisIntf.FlipVerticalobjArg1
- Parameters:
i_grr (SchGRRComp) –
- Return type:
None
- insert_into_route_with_info(i_insert_info: AnyObject, o_new_component: SchComponent, o_new_route: SchRoute) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub InsertIntoRouteWithInfo(AnyObject iInsertInfo,SchComponent oNewComponent,SchRoute oNewRoute)Insert a component into a route. An internal structure is prerequisite tocalling this method. This structure is obtained from callingCATISchCompatible::GetBestFitInsertInfo.Parameters:iInsertInfoPointer to an internal class which contains structured informationof a component for placement. This is the output for callingCATISchCompatible::GetBestFitInsertInfo.oNewComponentInterface pointer to the new component instance placed.oNewRouteInterface pointer to the new route instance, created when thecomponent is inserted into the routeExample:Dim objThisIntf As SchComponentDim objArg1 As AnyObjectDim objArg2 As SchComponentDim objArg3 As SchRoute…objThisIntf.InsertIntoRouteWithInfoobjArg1,objArg2,objArg3
- Parameters:
i_insert_info (AnyObject) –
o_new_component (SchComponent) –
o_new_route (SchRoute) –
- Return type:
None
- is_a_reference(o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub IsAReference(boolean oBYes)Query whether the component is a reference (as opposed to aninstance).Parameters:oBYesIf TRUE, the component is a reference.Example:Dim objThisIntf As SchComponentDim bVar1 As boolean…objThisIntf.IsAReferencebVar1
- Parameters:
o_b_yes (bool) –
- Return type:
None
- is_inserted(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub IsInserted(SchGRRComp iGRR,boolean oBYes)Query whether the component is inserted into a route.Parameters:iGRRPointer to the component graphical representation.oBYesIf TRUE, the component is currently inserted in a route.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.IsInsertedobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_flip_connected(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToFlipConnected(SchGRRComp iGRR,boolean oBYes)Query whether it is OK to connect the component via next compatibleconnectors.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, then it is OK to flip the component.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToFlipConnectedobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_flip_horizontal(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToFlipHorizontal(SchGRRComp iGRR,boolean oBYes)Query whether it is OK to flip the component about the horizontalaxis.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, then it is OK to flip the component.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToFlipHorizontalobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_flip_on_line(i_grr: SchGRRComp, o_b_yes: bool, o_db2_line_pt: SchListOfDoubles, o_db2_line_vec: SchListOfDoubles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToFlipOnLine(SchGRRComp iGRR,boolean oBYes,SchListOfDoubles oDb2LinePt,SchListOfDoubles oDb2LineVec)Query whether it is OK to flip the component about the inserted routesegment.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, then it is OK to flip the component.oDb2LinePtAbsolute X-Y coordinates of a point on the segment.oDb2LineVecAbsolute X-Y component vector along the segment.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As booleanDim objArg3 As SchListOfDoublesDim objArg4 As SchListOfDoubles…objThisIntf.OKToFlipOnLineobjArg1,bVar2,objArg3,objArg4
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
o_db2_line_pt (SchListOfDoubles) –
o_db2_line_vec (SchListOfDoubles) –
- Return type:
None
- ok_to_flip_vertical(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToFlipVertical(SchGRRComp iGRR,boolean oBYes)Query whether it is OK to flip the component about verticalaxis.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, then it is OK to flip the component.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToFlipVerticalobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_place_in_space(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToPlaceInSpace(SchGRRComp iGRR,boolean oBYes)Query whether the component can be placed in free space.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, the component can be slided.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToPlaceInSpaceobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_scale(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToScale(SchGRRComp iGRR,boolean oBYes)Query whether it is OK to scale the component.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst image found will be used.oBYesIf TRUE, then it is OK to scale the component.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToScaleobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_slide(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToSlide(SchGRRComp iGRR,boolean oBYes)Query whether the component can be slided.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, the component can be slided.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToSlideobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- ok_to_uninsert(i_grr: SchGRRComp, o_b_yes: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub OKToUninsert(SchGRRComp iGRR,boolean oBYes)Query whether it is OK to uninsert the component.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.oBYesIf TRUE, then it is OK to uninsert the component.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim bVar2 As boolean…objThisIntf.OKToUninsertobjArg1,bVar2
- Parameters:
i_grr (SchGRRComp) –
o_b_yes (bool) –
- Return type:
None
- place_in_space(i_grr: SchGRRComp, i_db6_axis: tuple, o_new_component: SchComponent) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PlaceInSpace(SchGRRComp iGRR,CATSafeArrayVariant iDb6Axis,SchComponent oNewComponent)Place a component in space, unconnected to other objects. It will createlocal reference (from a catalog referenced document) ifnecessary.Parameters:iGRRPointer to the component graphical representation. if NULL the“Primary” graphical representation will be used.iDb6Axis[6]X-axis of the local axis of the new instance Y-axis of the localaxis of the new instance X-Y coordinates of the orgin of the new instance. Thisaxis defines the orientation and location of the new instance in space.oNewComponentInterface pointer to the new component instance placed.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim dbVar2(6) As CATSafeArrayVariantDim objArg3 As SchComponent…objThisIntf.PlaceInSpaceobjArg1,dbVar2,objArg3
- Parameters:
i_grr (SchGRRComp) –
i_db6_axis (tuple) –
o_new_component (SchComponent) –
- Return type:
tuple
- place_on_component_with_info(i_place_info: AnyObject) SchComponent ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func PlaceOnComponentWithInfo(AnyObject iPlaceInfo) AsSchComponentPlace a component connected to another component. An internal structure isprerequisite to calling this method. This structure is obtained from callingCATISchCompatible::GetBestFitPlaceInfo.Parameters:iPlaceInfoPointer to an internal class which contains structured informationof a component for placement. This is the output for callingCATISchCompatible::GetBestFitPlaceInfo.oNewComponentInterface pointer to the new component instance placed.Example:Dim objThisIntf As SchComponentDim objArg1 As AnyObjectDim objArg2 As SchComponent…Set objArg2 = objThisIntf.PlaceOnComponentWithInfo(objArg1)
- Parameters:
i_place_info (AnyObject) –
- Return type:
- place_on_object(i_grr: SchGRRComp, i_db6_axis: tuple, i_object_to_connect: SchAppConnectable, o_new_component: SchComponent) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PlaceOnObject(SchGRRComp iGRR,CATSafeArrayVariant iDb6Axis,SchAppConnectable iObjectToConnect,SchComponent oNewComponent)Place a component connected to another component or insert into aroute.Parameters:iGRRPointer to the component graphical representation. if NULL the“Primary” graphical representation will be used.iDb6Axis[6]X-axis of the local axis of the new instance Y-axis of the localaxis of the new instance X-Y coordinates of the orgin of the new instance. Thisaxis defines the orientation and location of the new instance in space.iObjectToConnectPointer to a component to connect the new instance to or a routeobject to insert new component into.oNewComponentInterface pointer to the new component instance placed.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim dbVar2(6) As CATSafeArrayVariantDim objArg3 As SchAppConnectableDim objArg4 As SchComponent…objThisIntf.PlaceOnObjectobjArg1,dbVar2,objArg3,objArg4
- Parameters:
i_grr (SchGRRComp) –
i_db6_axis (tuple) –
i_object_to_connect (SchAppConnectable) –
o_new_component (SchComponent) –
- Return type:
tuple
- query_connect_ability(i_grr: SchGRRComp) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func QueryConnectAbility(SchGRRComp iGRR) As AnyObjectFind the Schematic component information for placement.Parameters:iGRRPointer to the component graphical representation. if NULL the“Primary” graphical representation will be used.oPlaceInfoPointer to an internal class which contains structured informationof a component for placement. This is the input for callingCATISchCompatible::IsComponentCompatibleExample:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim objArg2 As AnyObject…Set objArg2 = objThisIntf.QueryConnectAbility(objArg1)
- Parameters:
i_grr (SchGRRComp) –
- Return type:
- slide(i_grr: SchGRRComp, i_db2_pt_to_slide_to: tuple) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Slide(SchGRRComp iGRR,CATSafeArrayVariant iDb2PtToSlideTo)Slide a component (applicable to inserted component only). The component ismoved along the route and remain inserted.Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.iDb2PtToSlideTo[2]X-Y coordinates of the point to slide the component to.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRCompDim dbVar2(2) As CATSafeArrayVariant…objThisIntf.SlideobjArg1,dbVar2
- Parameters:
i_grr (SchGRRComp) –
i_db2_pt_to_slide_to (tuple) –
- Return type:
tuple
- uninsert(i_grr: SchGRRComp) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Uninsert(SchGRRComp iGRR)Remove all connections of a component with a route. (applicable to insertedcomponent only).Parameters:iGRRPointer to the component graphical representation. if NULL thefirst insert image found will be used.Example:Dim objThisIntf As SchComponentDim objArg1 As SchGRRComp…objThisIntf.UninsertobjArg1
- Parameters:
i_grr (SchGRRComp) –
- Return type:
None