All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

SchCntrLocation (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---SchCntrLocation
 


Manage the location of a schematic connector.

Method Index

GetAlignVector
Get the current alignment vector of the connector.
GetPosition
Get the current position of the connector in absolute coordinates.
GetRelativePosition
Get the current position of the connector in relative coordinates.
SetAlignVector
Set the current alignment vector of the connector.
SetPosition
Set the current position of the connector in absolute coordinates.
SetRelativePosition
Set the current position of the connector in absolute coordinates.

Methods


o Sub GetAlignVector(CATIASchGRR iGRR,
CATIASchListOfDoubles oDb2AlignVector)
Get the current alignment vector of the connector.
Parameters:
iGRR
Pointer to the graphical primitive or the graphical image or the graphical primitives of the owner of the connector.
oDb2AlignVector
X-Y component of the current alignment vector of the connector.
Example:
 Dim objThisIntf As SchCntrLocation
 Dim objArg1 As SchGRR
 Dim objArg2 As SchListOfDoubles
  ...
 objThisIntf.GetAlignVectorobjArg1,objArg2
 
o Sub GetPosition(CATIASchGRR iGRR,
CATIASchListOfDoubles oDb2Position)
Get the current position of the connector in absolute coordinates.
Parameters:
iGRR
Pointer to the graphical primitive or the graphical image or the graphical primitives of the owner of the connector.
oDb2Position
Absolute X-Y coordinates of the current position of the connector.
Example:
 Dim objThisIntf As SchCntrLocation
 Dim objArg1 As SchGRR
 Dim objArg2 As SchListOfDoubles
  ...
 objThisIntf.GetPositionobjArg1,objArg2
 
o Sub GetRelativePosition(CATIASchListOfDoubles oDb2RelativePosition)
Get the current position of the connector in relative coordinates.
Parameters:
oDb2RelativePosition
relative X-Y coordinates of the current position of the connector.
Example:
 Dim objThisIntf As SchCntrLocation
 Dim objArg1 As SchListOfDoubles
  ...
 objThisIntf.GetRelativePositionobjArg1
 
o Sub SetAlignVector(CATIASchGRR iGRR,
CATSafeArrayVariant iDb2AlignVector)
Set the current alignment vector of the connector.
Parameters:
iGRR
Pointer to the graphical primitive or the graphical image or the graphical primitives of the owner of the connector.
iDb2AlignVector
X-Y component of the current alignment vector of the connector to be set.
Example:
 Dim objThisIntf As SchCntrLocation
 Dim objArg1 As SchGRR
 Dim dbVar2(2) As CATSafeArrayVariant
  ...
 objThisIntf.SetAlignVectorobjArg1,dbVar2
 
o Sub SetPosition(CATIASchGRR iGRR,
CATSafeArrayVariant iDb2Position)
Set the current position of the connector in absolute coordinates. All connectors on multi-images are affected because the relative position on connect will be changed accordingly.
Parameters:
iGRR
Pointer to the graphical primitive or the graphical image or the graphical primitives of the owner of the connector..
iDb2Position
absolute X-Y coordinates of the current position of the connector to be set.
Example:
 Dim objThisIntf As SchCntrLocation
 Dim objArg1 As SchGRR
 Dim dbVar2(2) As CATSafeArrayVariant
  ...
 objThisIntf.SetPositionobjArg1,dbVar2
 
o Sub SetRelativePosition(CATSafeArrayVariant iDb2RelativePosition)
Set the current position of the connector in absolute coordinates.
Parameters:
iDb2RelativePosition
relative X-Y coordinates of the current position of the connector to be set.
Example:
 Dim objThisIntf As SchCntrLocation
 Dim dbVar1(2) As CATSafeArrayVariant
  ...
 objThisIntf.SetRelativePositiondbVar1
 

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