ScrSetAntiPadOnLayer

Adds or changes a given padstack's antipads. Can also be used to delete antipads.

Note: If an antipad already exists, the script alters it. If one does not exist, the script creates one.

UI Command:   None.
Syntax:   obj.ScrSetAntiPadOnLayer(<padstackName>, <layerName>, <shapeName>, <widthString>, <heightString>)
Parameters:  

BSTR padstackName

layerName

shapeName ("None" to delete an antipad; otherwise, "Circle", "Oblong", or "Rectangle")

widthString (including unit of measure)

heightString (including unit of measure)

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

obj.ScrSetAntiPadOnLayer("VIA_M1_M2", "METAL-1", "Rectangle", "0.1cm", "0.1cm")

IPY Example:  

oDoc.ScrSetAntiPadOnLayer('VIA_M1_M2', 'METAL-1', 'Rectangle', '0.1cm', '0.1cm')