Indexes   

SchComponent2 (Object)

Manage a schematic component.

Method Index

PlaceInSpace
Place a component in space, unconnected to other objects.
PlaceOnObject
Place a component connected to another component or insert into a route.

Methods


o Sub PlaceInSpace( iGRR,
iDb6Axis,
iDoc,
oNewComponent)
Place a component in space, unconnected to other objects. It will create local reference (from a catalog referenced document) if necessary.
Parameters:
iGRR
Pointer 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 local axis of the new instance X-Y coordinates of the orgin of the new instance. This axis defines the orientation and location of the new instance in space.
iDoc
Pointer to a document to create the object in. If NULL, the document associated with the current Editor will be used.
oNewComponent
Interface pointer to the new component instance placed.
Example:
 Dim objThisIntf As SchComponent2
 Dim objArg1 As SchGRRComp
 Dim dbVar2(6) As CATSafeArrayVariant
 Dim objArg3 As Document
 Dim objArg4 As SchComponent
  ...
 objThisIntf.PlaceInSpaceobjArg1,dbVar2,objArg3,objArg4
 
o Sub PlaceOnObject( iGRR,
iDb6Axis,
iObjectToConnect,
iDoc,
oNewComponent)
Place a component connected to another component or insert into a route.
Parameters:
iGRR
Pointer 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 local axis of the new instance X-Y coordinates of the orgin of the new instance. This axis defines the orientation and location of the new instance in space.
iObjectToConnect
Pointer to a component to connect the new instance to or a route object to insert new component into.
iDoc
Pointer to a document to create the object in. If NULL, the document associated with the current Editor will be used.
oNewComponent
Interface pointer to the new component instance placed.
Example:
 Dim objThisIntf As SchComponent2
 Dim objArg1 As SchGRRComp
 Dim dbVar2(6) As CATSafeArrayVariant
 Dim objArg3 As SchAppConnectable
 Dim objArg4 As Document
 Dim objArg5 As SchComponent
  ...
 objThisIntf.PlaceOnObjectobjArg1,dbVar2,objArg3,objArg4,objArg5
 

Copyright © 2006, Dassault Systèmes. All rights reserved.