RectangleMixin

Synopsis

This design is used to describe a rectangle's parameters, boundaries, and handle points but it contains no geometry itself. The design can be mixed into other designs to provide the same orientation and sizing functionality of a rectangle without the rectangle geometry.

Mixins

RectangleMixinModifier

Canonicals

Name Type Description
width number Size of the Rectangle along its local X axis.
height number Size of the Rectangle along its local Y axis.

Parameters

Name Type Description
v00 point Left, Bottom corner.
v10 point Right, Bottom corner.
v01 point Left, Top corner.
v11 point Right, Top corner.
center point Center point of the rectangle, and the origin of the rectangle's localFrame.
eLeft point Point at the edge center with the minimum X value.
eTop point Point at the edge center with the maximum Y value.
eRight point Point at the edge center with the maximum X value.
eBottom point Point at the edge center with the minimum Y value.

Group Rules

<center_only (center)> Places the origin at the center and translates the referenceFrame to the new center to create the localFrame.

<v00_only (v00)> Determines the location of the origin from this point and the width and height of the rectangle.

<v10_only (v10)> Determines the location of the origin from this point and the width and height of the rectangle.

<v11_only (v11)> Determines the location of the origin from this point and the width and height of the rectangle.

<v01_only (v01)> Determines the location of the origin from this point and the width and height of the rectangle.

<eTop_only (eTop)> Determines the location of the origin from this point and the width and height of the rectangle.

<eBottom_only (eBottom)> Determines the location of the origin from this point and the width and height of the rectangle.

<eRight_only (eRight)> Determines the location of the origin from this point and the width and height of the rectangle.

<eLeft_only (eLeft)> Determines the location of the origin from this point and the width and height of the rectangle.

<v00_v11 (v00 v11)> Determines the height, width and orientation of the rectangle from these two corner points .

Example 1

Name : RectangleMixin_Ex01
Design : Mixins RectangleMixin AcDrawingDocument
Name Type Formula
radius number 4
color string "default"
height number 2 * radius
width number 2 * radius
Child Name : circle
Child Design : :Arc
Name Type Supplied
radius number radius
color string color
Name : outline
Design : :Rectangle
Name Type Formula
height number height
width number width
color string "red"
linePattern string "dotted"

Example 2

Name : RectangleMixin_Ex02
Design : Mixins AcDrawingDocument
Child Name : item_1
Child Design : :RectangleMixin_Ex01
Name Type Supplied
radius number 4
color string "navy blue"
Child Name : item_2
Child Design : :RectangleMixin_Ex01
Name Type Supplied
radius number 3
eLeft point item_1.eRight
color string "blue"
Child Name : item_3
Child Design : :RectangleMixin_Ex01
Name Type Supplied
radius number 2
eBottom point item_2.eTop
color string "blue green"
Child Name : item_4
Child Design : :RectangleMixin_Ex01
Name Type Supplied
radius number 1
eRight point item_3.eLeft
color string "jungle green"