Expand (Layout Editor)

Scales an existing circle, square, or polygon. To expand an object while preserving ports, use ExpandWithPorts.

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  Expand (<expansion>, <join>, <replace>, <items>)
Python Example

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