RectangleMixin

概要

design 長方形のパラメータ、境界、およびハンドル points の説明に使用されますが、ジオ メトリ自体が含まれています。 design 同じ方向を指定して、長方形のジオ メトリのない長方形のサイズ変更機能に他の designs に混合することもできます。

Mixin

RectangleMixinModifier

標準

Name [タイプ] 説明
width number ローカル X 軸に沿った長方形のサイズです。
height number ローカル Y 軸に沿った長方形のサイズです。

[パラメータ]

Name [タイプ] 説明
v00 point 左下のコーナーです。
v10 point 右下のコーナーです。
v01 point 左上のコーナーです。
v11 point 右上のコーナーです。
center point 長方形の中心 point 、および長方形の localFrame の原点です。
eLeft point X 値が最小であるエッジの中心にある Point をクリックします。
eTop point Y 値が最大であるエッジの中心にある Point をクリックします。
eRight point X 値が最大であるエッジの中心にある Point をクリックします。
eBottom point Y 値が最小であるエッジの中心にある Point をクリックします。

グループ ルール

<center_only (center)> 原点を中心に配置し、referenceFrame を新しい中心に変換して localFrame を作成します。

<v00_only (v00) > point と長方形の幅と高さの原点の位置を指定します。

<v10_only (v10) > point と長方形の幅と高さの原点の位置を指定します。

<v11_only (v11) > point と長方形の幅と高さの原点の位置を指定します。

<v01_only (v01) > point と長方形の幅と高さの原点の位置を指定します。

<eTop_only (eTop) > point と長方形の幅と高さの原点の位置を指定します。

<eBottom_only (eBottom) > point と長方形の幅と高さの原点の位置を指定します。

<eRight_only (eRight) > point と長方形の幅と高さの原点の位置を指定します。

<eLeft_only (eLeft) > point と長方形の幅と高さの原点の位置を指定します。

<v00_v11 (v00 v11) > 高さ、これらの 2 つのコーナー points からの長方形の幅と方向を決定します。

例 1

Name : RectangleMixin_Ex01
Design : Mixins RectangleMixin AcDrawingDocument
[名前] [タイプ]
radius number 4
color string "default"
height number 2 * radius
width number 2 * radius
Child Name : circle
Child Design : :Arc
[名前] [タイプ] 指定値
radius number 半径
color string color
Name : outline
Design : :Rectangle
[名前] [タイプ]
height number height
width number
color string "red"
linePattern string "dotted"

例 2

Name : RectangleMixin_Ex02
Design : Mixins AcDrawingDocument
Child Name : item_1
Child Design : :RectangleMixin_Ex01
[名前] [タイプ] 指定値
radius number 4
color string "navy blue"
Child Name : item_2
Child Design : :RectangleMixin_Ex01
[名前] [タイプ] 指定値
radius number 3
eLeft point item_1.eRight
color string "blue"
Child Name : item_3
Child Design : :RectangleMixin_Ex01
[名前] [タイプ] 指定値
radius number 2
eBottom point item_2.eTop
color string "blue green"
Child Name : item_4
Child Design : :RectangleMixin_Ex01
[名前] [タイプ] 指定値
radius number 1
eRight point item_3.eLeft
color string "jungle green"