ScrDrawPort

Draws a port in the specified location with specified parameters.
UI Command:   Home > Circuit Elements > Add Port.
Syntax:   obj.ScrDrawPort(<portName>, <px>, <py>, <nx>, <ny>, <posLayerName>, <negLayerName>, <refZe>)
Parameters:  

BSTR portName

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 refZe (reference impedance, in Ohms)

Return Value:  

BOOL:

  • 0 – Failure
  • 1 – Success
VB Example:  

obj.ScrDrawPort("Porty",8500,4500,6000,1000,"SURFACE","BASE",0.1)

IPY Example:  

oDoc.ScrDrawPort('Porty',8500,4500,6000,1000,'SURFACE','BASE',0.1)