All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

SchCompGraphic (Object)

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


Manage the graphical representation of a schematic component.

Method Index

Activate
To add a new image to an existing object.
AddGraphicalRepresentation
Add a graphical representation to a component.
Deactivate
To remove an image to an existing object.
ListGraphicalImages
List all graphical images (instances of the rep) of a component.
ListGraphicalRepresentations
List all graphical representation of a component.
RemoveGraphicalRepresentation
Remove a graphical representation from a component.
Switch
Replace the input image object with an image of the graphical representation with the input name.
SwitchAll
Replace all occurances of the images of this component with those of the graphical representation with the input name.

Methods


o Sub Activate(CATBSTR iGRRName,
CATSafeArrayVariant iDb2WhereAt,
CATIASchGRRComp oGRR)
To add a new image to an existing object. This new image is an instance of graphical representation with the input name.
Parameters:
iGRRName
The name of the graphic representation
iDb2WhereAt
The x-y coordinates of the image position. If NULL, the image will be positioned at the origin.
oGRR
Pointer to the new graphical image of the component.
Example:
 Dim objThisIntf As SchCompGraphic
 Dim strVar1 As String
 Dim dbVar2(2) As CATSafeArrayVariant
 Dim objArg3 As SchGRRComp
  ...
 objThisIntf.ActivatestrVar1,dbVar2,objArg3
 
o Sub AddGraphicalRepresentation(CATIASchGRRComp iGRRToAdd)
Add a graphical representation to a component.
Parameters:
iGRRToAdd
The graphical representation to be added to the component.
Example:
 Dim objThisIntf As SchCompGraphic
 Dim objArg1 As SchGRRComp
  ...
 objThisIntf.AddGraphicalRepresentationobjArg1
 
o Sub Deactivate(CATIASchGRRComp iGRR)
To remove an image to an existing object.
Parameters:
iGRR
The graphical image to be removed from the component.
iDb2WhereAt
The x-y coordinates of the image position. If NULL, the image will be positioned at the origin.
Example:
 Dim objThisIntf As SchCompGraphic
 Dim objArg1 As SchGRRComp
  ...
 objThisIntf.DeactivateobjArg1
 
o Func ListGraphicalImages() As CATIASchListOfObjects
List all graphical images (instances of the rep) of a component.
Parameters:
oLGRR
A list of graphical images (members are CATISchGRRComp interface pointers).
Example:
 Dim objThisIntf As SchCompGraphic
 Dim objArg1 As SchListOfObjects
  ...
 Set objArg1 = objThisIntf.ListGraphicalImages
 
o Func ListGraphicalRepresentations() As CATIASchListOfObjects
List all graphical representation of a component.
Parameters:
oLGRR
A list of graphical representations (members are CATISchGRRComp interface pointers).
Example:
 Dim objThisIntf As SchCompGraphic
 Dim objArg1 As SchListOfObjects
  ...
 Set objArg1 = objThisIntf.ListGraphicalRepresentations
 
o Sub RemoveGraphicalRepresentation(CATIASchGRRComp iGRRToRemove)
Remove a graphical representation from a component.
Parameters:
iGRRToRemove
The graphical representation to be removed from the component.
Example:
 Dim objThisIntf As SchCompGraphic
 Dim objArg1 As SchGRRComp
  ...
 objThisIntf.RemoveGraphicalRepresentationobjArg1
 
o Sub Switch(CATIASchGRRComp iGRR,
CATBSTR iGRRName,
CATIASchGRRComp oGRR)
Replace the input image object with an image of the graphical representation with the input name.
Parameters:
iGRR
Pointer to the component graphical image to be switched.
oGRR
Pointer to the new graphical image of the component.
Example:
 Dim objThisIntf As SchCompGraphic
 Dim objArg1 As SchGRRComp
 Dim strVar2 As String
 Dim objArg3 As SchGRRComp
  ...
 objThisIntf.SwitchobjArg1,strVar2,objArg3
 
o Sub SwitchAll(CATBSTR iGRRName)
Replace all occurances of the images of this component with those of the graphical representation with the input name.
Parameters:
iGRRName
The name of the graphical representation
Example:
 Dim objThisIntf As SchCompGraphic
 Dim strVar1 As String
  ...
 objThisIntf.SwitchAllstrVar1
 

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