All Frameworks  Object Hierarchy  This Framework  Indexes   

SchRouteAlternateGraphic (Object)

Manage alternative graphical primitives of a schematic route.

Method Index

AddAlternateGraphic
Add an alternate graphical primitive to a route.
ListAlternateGraphics
Lists the alternate graphics of a route.
RemoveAllAlternateGraphicsOfStyle
Removes all alternate graphical primitives of the given style.
RemoveAllAlternateGraphics
Removes all alternate graphical primitives.
RemoveAlternateGraphic
Remove an alternate graphical primitive from a route.

Methods


o Sub AddAlternateGraphic( iInitialXYPosition,
oAddedGRR)
Add an alternate graphical primitive to a route. The alternate graphical style is determined by the application. on the Schematic component in order to specify the graphic style. on the Schematic component in order to identify the component as an assembly.
Parameters:
iInitialXYPosition
The initial position for calculating the display of the graphic. If NULL, the start point will be calculated based on the route graphic path of the first assembly member to this Schematic component.
oAddedGRR
The route alternate graphical primitive that is added to the route.
Example:
 Dim objThisIntf As SchRouteAlternateGraphic
 Dim dbVar1(x) As CATSafeArrayVariant
 Dim objArg2 As SchGRR
  ...
 objThisIntf.AddAlternateGraphicdbVar1,objArg2
 
o Func ListAlternateGraphics() As
Lists the alternate graphics of a route. The list contains all objects of the same alternate graphic style. The style is determined must be implemented on the Schematic component in order to specify the graphic style.
Parameters:
oLGRR
A list of the alternate graphic objects.
Example:
 Dim objThisIntf As SchRouteAlternateGraphic
 Dim objArg1 As SchListOfObjects
  ...
 Set objArg1 = objThisIntf.ListAlternateGraphics
 
o Sub RemoveAllAlternateGraphicsOfStyle( iStyle)
Removes all alternate graphical primitives of the given style.
Parameters:
iStyle
An enum of the style of alternate graphic to remove.
Example:
 Dim objThisIntf As SchRouteAlternateGraphic

  ...
 objThisIntf.RemoveAllAlternateGraphicsOfStyleCatSchIDLRouteAlternateGraphicStyle_Enum
 
o Sub RemoveAllAlternateGraphics()
Removes all alternate graphical primitives.
Example:
 Dim objThisIntf As SchRouteAlternateGraphic
  ...
 objThisIntf.RemoveAllAlternateGraphics
 
o Sub RemoveAlternateGraphic( iGRRToBeRemoved)
Remove an alternate graphical primitive from a route.
Parameters:
iGRRToBeRemoved
The route alternate graphic to be removed from the route. The input graphic will be removed as long as there are at least two alternate graphics of that style on the route.
Example:
 Dim objThisIntf As SchRouteAlternateGraphic
 Dim objArg1 As SchGRR
  ...
 objThisIntf.RemoveAlternateGraphicobjArg1
 

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