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"
<items> Array

Structured array containing object to expand (i.e., ["NAME:elements, "<name of object to expand>"]).

Return Value None.

 

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

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