pycatia.cat_sch_platform_interfaces.sch_component2¶
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_component2.SchComponent2(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchComponent2Manage a schematic component.- place_in_space(i_grr: SchGRRComp, i_db6_axis: tuple, i_doc: Document, 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,Document iDoc,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.iDocPointer to a document to create the object in. If NULL, thedocument associated with the current Editor will be used.oNewComponentInterface pointer to the new component instance placed.Example:Dim objThisIntf As SchComponent2Dim objArg1 As SchGRRCompDim dbVar2(6) As CATSafeArrayVariantDim objArg3 As DocumentDim objArg4 As SchComponent…objThisIntf.PlaceInSpaceobjArg1,dbVar2,objArg3,objArg4
- Parameters:
i_grr (SchGRRComp) –
i_db6_axis (tuple) –
i_doc (Document) –
o_new_component (SchComponent) –
- Return type:
tuple
- place_on_object(i_grr: SchGRRComp, i_db6_axis: tuple, i_object_to_connect: SchAppConnectable, i_doc: Document, 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,Document iDoc,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.iDocPointer to a document to create the object in. If NULL, thedocument associated with the current Editor will be used.oNewComponentInterface pointer to the new component instance placed.Example:Dim objThisIntf As SchComponent2Dim objArg1 As SchGRRCompDim dbVar2(6) As CATSafeArrayVariantDim objArg3 As SchAppConnectableDim objArg4 As DocumentDim objArg5 As SchComponent…objThisIntf.PlaceOnObjectobjArg1,dbVar2,objArg3,objArg4,objArg5
- Parameters:
i_grr (SchGRRComp) –
i_db6_axis (tuple) –
i_object_to_connect (SchAppConnectable) –
i_doc (Document) –
o_new_component (SchComponent) –
- Return type:
tuple