ExpandWithPorts (Layout Editor)

Scales an existing circle, square, or polygon and preserves ports. To expand an object without preserving ports, use Expand.

UI Access Draw > Expand.
Parameters
Name Type Description
<expansion> String Expansion amount, including unit. Value can be negative to shrink an object.
<join> String

Corner style. One of:

  • "ROUND"
  • "MITER"
  • "CORNER"
<replace> Boolean True to replace original object; False to create new object.
<items> Array

Structured array containing object to expand:

Array("NAME:elements",

"<Name of Object to Expand>")

Return Value None.

 

Python Syntax  ExpandWithPorts (<expansion>, <join>, <replace>, <items>)
Python Example

oEditor.ExpandWithPorts("2mm", "ROUND", True, ["NAME:elements", "circle_0"])