ScrCreatePortsOnPart

Creates ports between pins on the specified part.

Note: The positive terminals are either the specified pins, the pins on the specified net, or the intersection of the two sets if both parameters are not empty. The negative terminal is chosen as the closest pin on the reference net.

UI Command:   Tools > Create/Manage Pin Groups.
Syntax:   obj.ScrCreatePortsOnPart (<partName>, <refDes>, <posNet>, <posPinList>, <refNet>, <impedance>)
Parameters:  

BSTR partName

BSTR refDes

BSTR posNet

ARRAY posPinList

BSTR refNet

BSTR impedance

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

dim posPinList

posPinList = Array("pin1","pin2","pin3")

doc.ScrCreatePortsOnPart("CP90-P4969-90", "V1P1", "VREG_S9A_0P8", posPinList, "AGND", "35ohm")

IPY Example:  

oDoc.ScrCreatePortsOnPart('CP90-P4969-90', 'V1P1', 'VREG_S9A_0P8', ['pin1','pin2','pin3'], 'AGND', '35ohm')