AlignObjects (Layout Editor)

Use: Align objects, e.g. primitives, relative to each other.

Command: AlignObjects

Syntax: AlignObjects

Array("NAME:align", <"alignment">, …),

Array("NAME:elements", <"elem">, …)

Return Value: Return Value: None

Parameters: <"alignment">

Type: text

Description: any one of:

"AlignLeft"

"AlignRight"

"CenterHorz" - align centers horizontally

"DistributeCentersHorz" - distribute object centers evenly horizontally

"SpaceEdgesHorz" - space objects equal distances apart horizontally

"AlignTop"

"AlignBottom"

"CenterVert" - align centers vertically

"DistributeCentersVert" - distribute object centers evenly vertically

"SpaceEdgesVert" - space objects equal distances apart vertically

"elem">

Type: text

Description: name of element (primitive, component, etc.) to align

Example:

Set oDesign = oProject.SetActiveDesign("HFSS 3D Layout1")

Set oEditor = oDesign.SetActiveEditor("Layout")

oEditor.AlignObjects Array("NAME:align", "AlignLeft"), Array("NAME:elements", "circle_2", "rect_1", "poly_3")