ScrSetThermalPadOnLayer

Changes, adds, or deletes thermal pads of a specified padstack.

If no thermal pad exists, script adds thermal pads to the specified padstack.

If thermal pad exists, script modifies pad shape and/or dimensions.

To delete a pad, choose "None" as the shapeName.

UI Command:   Home > Edit Padstack. Select Thermal Relief Pag Properties.
Syntax:   obj.ScrSetThermalPadOnLayer(<padstackName>, <layerName>, <shapeName>, <widthString>, <heightString>)
Parameters:  

BSTR padstackName

BSTR layerName

BSTR shapeName ("None", "Circle", "Oblong", or "Rectangle")

BSTR widthString (in mils if no unit specified; for circle pads, this is the radius)

BSTR heightString (in mils if no unit specified)

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

obj.ScrSetThermalPadOnLayer("VIA_M1_M2", "METAL-1", "Rectangle", "1.2mm", "1.2mm")

IPY Example:  

oDoc.ScrSetThermalPadOnLayer('VIA_M1_M2', 'METAL-1', 'Rectangle', '1.2mm', '1.2mm')