ScrClipDesign

Clips designated nets using a specified polygon.
UI Command:   None.
Syntax:   obj.ScrClipDesign (<netNames>, <points>)
Parameters:  

ARRAY netNames (nets to be clipped)

ARRAY points (vertices of clipping polygon)

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

dim netNames (5)

netNames(0)="VCC"

netNames(1)="GND"

netNames(2)="Heg"

netNames(3)="NET-1"

netNames(4)="NET-2"

netNames(5)="PWR"

' points for polygon: (0.0, 0.0), (10.0, 20.0),

' (40.0, 40.0), (40.0, 0.0), (16.0, 4.0)

dim points(9)

points(0)=0.0

points(1)=0.0

points(2)=10.0

points(3)=20.0

points(4)=40.0

points(5)=40.0

points(6)=40.0

points(7)=0.0

points(8)=16.0

points(9)=4.0

' outcome is set to TRUE on success

outcome = obj.ScrClipDesign ( netNames, points )

IPY Example:  

netNames = ['VCC', 'GND', 'Heg', 'NET-1', 'NET-2', 'PWR']

points = [0.0, 0.0, 10.0, 20.0, 40.0, 40.0, 40.0, 0.0, 16.0, 4.0]

outcome = obj.ScrClipDesign (netNames, points)