EditWithComps [padstack manager]

Edit an existing padstack.

UI Access Not available
Parameters
Name Type Description
<PadstackName> String Composite name of the Padstack being edited
<PadstackPropertiesArray> Array Array of Padstack properties

<NAME>

String New simple name for the Padstack

<ModTime>

Integer

An integer that corresponds to the number of seconds that have elapsed since 00:00 hours, Jan 1, 1970 UTC from the system clock.

<Library>

String Library name

<LibLocation>

String Project location

<psdArray>

Array

["NAME:psd",

"nam:= ", <PadstackName>,

"lib:=", "", #name of the library

"mat:=", "", # hole plating material

"plt:=", "0", # percent of hole's radius filled by plating ]

<lgmArray>

Array

Layer information in the form of

["NAME:lgm",

<LayerGeometryArray>,

<LayerGeometryArray....

],

See the details below.

<PadInfo>

Array Optional, it defines display properties. See below for more information.

<HoleRange>

String

One of these choices:

"Thr" – through all layout layers

"Beg" – from upper pad layer to lowest layout layer

"End" – from upper layout layer to lowest pad layer

"UTL" – from upper pad layer to lowest pad layer

<SolderballShape>

String

One of these choices:

"None" – no solderball

"Cyl" – cylinder solderball

"Sph" – spheroid solderball

<SolderballPlacement>

String

One of these choices:

"abv" – above padstack

"blw" – below padstack

<sbr>

String Solderball diameter, real with units

<sb2>

String Solderball mid diameter, real with units

<sbn>

String Name of solderball material
<PadPortLayerArray> Array List of integers where each integer is a layer ID.

<ListOfComponentNames>

Array

The list may be empty. When not empty, each string that is listed is a component that references the padstack to be edited. Prior to editing, a clone of the padstack is made, and the components that are listed are modified so that they now refer to the clone.

Return Value

Composite name of the padstack in the form of a string. If the name requested conflicts with the name of an existing padstack , the requested name is altered to be unique, and the name returned reflects that change.

 

Python Syntax

EditWithComps (<PadstackName>, [ <Name>, <ModTime>, <Library>, <LibLocation>, <PinDefInfo>,<GraphicsDataInfo>, <PadPortLayerArray>],<ListOfComponentNames>)

Python Example

oPadstackManager.EditWithComps("Circle - through1",

["NAME:Circle - through1",

"ModTime:=", 1235765635,

"Library:=", "",

"LibLocation:=", "Project",

["NAME:psd", "nam:=", "Circle - through1", "lib:=", "", "mat:=", "", "plt:=", "0",

["NAME:pds",

["NAME:lgm", "lay:=", "Top Signal", "id:=", 0,

"pad:=", ["shp:=", "Cir", "Szs:=", ["2.5mm"], "X:=", "0mm", "Y:=",

"0mm", "R:=", "0deg"],

"ant:=", ["shp:=", "Cir", "Szs:=", ["3.5mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"thm:=", ["shp:=", "No", "Szs:=", [], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"X:=", "0mm", "Y:=", "0mm", "dir:=", "Any"],

["NAME:lgm", "lay:=", "SignalA", "id:=", 1,

"pad:=", ["shp:=", "Cir", "Szs:=", ["2mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"ant:=", ["shp:=", "Cir", "Szs:=", ["3mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"thm:=", ["shp:=", "No", "Szs:=", [ ], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"X:=", "0mm", "Y:=", "0mm", "dir:=", "Any"],

["NAME:lgm", "lay:=", "SignalB", "id:=", 2,

"pad:=", ["shp:=", "Cir", "Szs:=", ["2mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"ant:=", [shp:=", "Cir", "Szs:=", ["3mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"thm:=", ["shp:=", "No", "Szs:=", [ ], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"X:=", "0mm", "Y:=", "0mm", "dir:=", "Any"],

["NAME:lgm", "lay:=", "Ground", "id:=", 3,

"pad:=", ["shp:=", "No", "Szs:=", [ ], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"ant:=", ["shp:=", "No", "Szs:=", [ ], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"thm:=", ["shp:=", "R90", "Szs:=", ["3mm", "0.75mm", "1mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"X:=", "0mm", "Y:=", "0mm", "dir:=", "Any"],

["NAME:lgm", "lay:=", "Bottom signal", "id:=", 5,

"pad:=", ["shp:=", "Cir", "Szs:=", ["1mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"ant:=", ["shp:=", "Cir", "Szs:=", ["2mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"thm:=", ["shp:=", "No", "Szs:=", [ ], "X:=", "0mm", "Y:=", "0mm", "R:=", "0"],

"X:=", "0mm", "Y:=", "0mm", "dir:=", "Any"]

]

"hle:=", ["shp:=", "Cir", "Szs:=", ["1.5mm"], "X:=", "0mm", "Y:=", "0mm", "R:=", "0deg"],

"hRg:=", "End",

"sbsh:=", "Sph",

"sbpl:=", "abv",

"sbr:=", "750um",

"sb2:=", "1200um", "1200um",

"sbn:=", "solder"],

"ppl:=", [0, 1, 2, 3, 5]

[""])

<LayerGeometryArray>:

["Name:lgm",

"lay:=", <string>, // definition layer name

"id:=", <int>, // definition layer id

"pad:=", <PadInfo>, // pad

"ant:=", <PadInfo>, // antipad

"thm:=", <PadInfo>, // themal pad

"X:=", <string>, // pad x connection, real with units

"Y:=", <string>, // pad y connection, real with units

"dir:=", <DirectionString>] // pad connection direction

 

<PadInfo>:

["shp:=", <PadShape>,

"Szs:=", <DimensionArray>,

"X:=", <string>, // x offset, real with units

"Y:=", <string>, // y offset, real with units

"R:=", <string> // rotation, real with units

]

<PadShape>– Input is a string; use one of the following:

"No" // no pad

"Cir" # Circle

"Sq" # Square

"Rct" # Rectangle

"Ov" # Oval

"Blt" # Bullet

"Ply" # Polygons

"R45" # Round 45 thermal

"R90" # Round 90 thermal

"S45" # Square 45 thermal

"S90" # Square 90 thermal

 

<DimensionArray>:

[<string>, ...] # each string is a real with units for one of the dimensions of the shape

<DirectionString>– Input is a string; use one of the following:

"No" # no direction

"Any" # any direction

"0" # 0 degrees

"45" # 45 degrees

"90" # 90 degrees

"135" # 135 degrees

"180" # 180 degrees

"225" # 225 degrees

"270" # 270 degrees

"315" # 315 degrees