ScrDrawCapacitor

Draws a capacitor in the specified location with specified parameters.
UI Command:   Home > Circuit Elements > Add Capacitor.
Syntax:   obj.ScrDrawCapacitor(<capName>, <partName>, <px>, <py>, <nx>, <ny>, <posLayerName>, <negLayerName>, <capVal>, <seriesIndVal>, <seriesResVal>)
Parameters:  

BSTR capName

BSTR partName

DOUBLE px (positive terminal x location)

DOUBLE py (positive terminal y location)

DOUBLE nx (negative terminal x location)

DOUBLE ny (negative terminal y location)

BSTR posLayerName

BSTR negLayerName

DOUBLE capVal (capacitance, in Farads)

DOUBLE seriesIndVal (parasitic inductance, in Henries)

DOUBLE seriesResVal (parasitic resistance, in Ohms)

Return Value:  

BOOL:

  • 0 – Failure
  • 1 – Success
VB Example:  

obj.ScrDrawCapacitor("Cappy","CL03A103KP3NNN",8500,4500,6000,-500,"SURFACE","BASE",1E-07,1E-11,0)

IPY Example:  

oDoc.ScrDrawCapacitor('Cappy','CL03A103KP3NNN',8500,4500,6000,-500,'SURFACE','BASE',1E-07,1E-11,0)