CreateEdgePort (Layout Editor)

Creates an edge port using the specified edges.

UI Access

Draw > Port > Create or Right-click > Port > Create.

Parameters
Name Type Description
<EdgePortArray> Array

Identifies the contents of the array (i.e., "Contents") containing the following arguments:

<NAME:Contents>

<Edge>

<External>

<NAME:Contents> String

Identifies the contents of the array (i.e., "Contents").

<Edge> Array

Array containing separate arrays for primitive edges and via edges.

For primitive edges, array contains:

<Et>

<Prim>

<Edge>

For via edges, array contains:

<Et>

<Sel>

<Layers>

<Sx>

<Sy>

<Ex>

<Ey>

<H>

<Rad>

Note:

Array can repeat in the same command.

<Et> String Type of new edge port (i.e., "pe" for primitive edge or "pse" for padstack edge or via).
<Prim> String Name of the target primitive.
<Edge#> Integer Edge number of the target primitive.

<Sel>

String Name of the target via.
<Layers> Integer Layer ID of the pad of the target via.
<Sx> Integer Starting X coordinate for the arc of the new edge port.
<Sy> Integer Starting Y coordinate for the arc of the new edge port.
<Ex> Integer Ending X coordinate for the arc of the new edge port.
<Ey> Integer Ending Y coordinate for the arc of the new edge port.
<H> Integer Arc height of the new edge port (e.g., enter 0 for a straight edge).
<rad> String Arc size of the new edge port (e.g., enter 0 for a straight edge).
<External> Boolean

True — the port is external.

False — the port is internal.

Return Value

Text containing the name of the created edge port. (Returns an empty name if the edge port is not created.)

 

Python Syntax CreateEdgePort(<EdgePortArray>)
Python Example

Primitive edge port:

oEditor.CreateEdgePort (("NAME:Contents", "edge:=", ("et:=", "pe",

"prim:=", "rect_167", "edge:=", 0), "edge:=", ("et:=", "pe", "prim:=",

"rect_167", "edge:=", 3), "external:=", true))

Via edge port:

oEditor.CreateEdgePort (("NAME:Contents", "edge:=", ("et:=", "pse",

"sel:=", "via_0", "layer:=", 10, "sx:=", -0.0015, "sy:=", -0.0015, "ex:=", 0.0015,

"ey:=", -0.0015, "h:=", 0, "rad:=", 0), "external:=", true))