LayoutHost Properties

Pars

Returns an ElementPars object. This property is used to set/get the component parameters declared in the footprint.

Example:

var pars = LayoutHost.Pars;

LayoutPars

Returns an ElementPars object. This property is used to set/get the locally defined parameters in the footprint.

Example:

var layPars = LayoutHost.LayoutPars;

LengthUnits

Returns a string. This property is used to set/get the internal length units in the current script. By default, length units in the script are meters. When this property is changed, any subsequent calls to the LayoutHost are interpreted in the new units.

Example:

LayoutHost.LengthUnits(“mm”);

MID

A constant used to query an edge for its mid point.

Example:

var x = rect.Edge(1).X(LayoutHost.MID);

START

A constant used to query an edge for its start point.

Example:

var x = rect.Edge(1).X(LayoutHost.START);

END

A constant used to query an edge for its end point.

Example:

var x = rect.Edge(1).X(LayoutHost.END);

Related Topics:

LayoutHost Object

LayoutHost Methods