Indexes   

SchCompGraphic (Object)

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.
SwitchAll
Replace all occurances of the images of this component with those of the graphical representation with the input name.
Switch
Replace the input image object with an image of the graphical representation with the input name.

Methods


o Sub Activate( iGRRName,
iDb2WhereAt,
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( 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( 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
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
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( 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 SwitchAll( 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
 
o Sub Switch( iGRR,
iGRRName,
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
 

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