概要
design
方向
rules
のコレクションが含まれていて、いくつかの方法で新しい座標系を配置します。 新しい座標系は、親の座標系を基準にして配置および方向を設定することもできます。この行では、入力
vectors
と
points
では新しい座標系の計算にまたは他の
part
から座標系をコピー]を使用します。
[パラメータ]
Name |
[タイプ] |
説明 |
localFrame |
frame
|
この FrameMixin にミックスされる
part
の座標系です。 これは、referenceFrame 値に設定されていても使用されている場合は、この
design's
グループルールで計算されるかを選択します。 |
referenceFrame |
frame
|
これは、他のパラメータは、新しい
frame
を決定するために使用されている場合、localFrame として使用するには、
frame
[オブジェクトがあります。 既定では、referenceFrame の値は、この子の親の localFrame 値です。これは、既定の方向を明示的に指定されていない新しい
child
を使用して、親の方向から継承されます。 |
origin
|
point
|
新しい localFrame 値の原点です。
point
|
xDirection |
vector
|
新しい localFrame の X 方向]
vector
をクリックします。 既定では、これはこの
part
の referenceFrame の 1,0,0
vector
です。 |
yDirection |
vector
|
新しい localFrame の Y 方向]
vector
をクリックします。 既定では、これはこの
part
の referenceFrame の 0,1,0
vector
です。 |
グループ ルール
<origin>[原点]
point
の位置に基づいて localFrame をします。
XDirection
vector
に基づいて localFrame を方向付け<xDirection > を選択します。
YDirection の
vector
に基づいて localFrame を方向付け<yDirection > を選択します。
は、xDirection と yDirection
vectors
に基づいて localFrame を方向付け<xDirection yDirection > を選択します。
<ReferenceFrame> referenceFrame と一致するように localFrame の位置と方向を合わせます。
カスタム アトリビュート
designs
の位置と方向を
rules
を追加するには、%%position および %%orientationの標準パラメータがあることに注意してください。 これらは独立に機能するので、座標系の原点(位置)は、座標系の位置合わせ(方向)とは独立して定義することができます。
例 1
Name
: |
frameMixin_Ex01
|
Design
: |
acDrawingDocument
|
[名前]
|
[タイプ]
|
式
|
scale
|
number
|
1 |
shaftLength |
number
|
scale * 3/7
|
Child Name
: |
shaft
|
Child Design
: |
:Cylinder
|
Child List
? |
[名前]
|
[タイプ]
|
指定値
|
Quantity
|
integer
|
3 |
axis
|
vector
|
nth(Child.index, {unitX, unitY, unitZ})
|
height
|
number
|
shaftLength |
radius
|
number
|
Child.height / 17
|
bottomPoint |
point
|
原点 |
color
|
string
|
nth(Child.index, {" blue ", " green ", " red "})
|
Child Name
: |
arrow
|
Child Design
: |
:Cone
|
Child List
? |
[名前]
|
[タイプ]
|
指定値
|
Quantity
|
integer
|
3 |
height
|
number
|
scale - shaftLength
|
radius
|
number
|
Child.height / 5
|
color
|
string
|
ref(nth(Child.index, shaft), " color: ")
|
origin
|
point
|
ref(nth(Child.index, shaft), " topPoint: ")
|
ReferenceFrame |
frame
|
ref(nth(Child.index, shaft), " localFrame: ")
|
例 2
Name
: |
frameMixin_Ex02
|
Design
: |
acDrawingDocument
|
Child Name
: |
originAxes
|
Child Design
: |
:frameMixin_Ex01
|
Child Name
: |
anObject
|
Child Design
: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
Text
|
string
|
"Obj"
|
charHeight |
number
|
1.0 |
Child Name
: |
newLocalFrame
|
Child Design
: |
:frameMixin_Ex01
|
[名前]
|
[タイプ]
|
指定値
|
scale
|
number
|
0.5 |
ReferenceFrame |
frame
|
anObject.localFrame |
例 3
Name
: |
frameMixin_Ex03
|
Design
: |
acDrawingDocument
|
Child Name
: |
originAxes
|
Child Design
: |
:frameMixin_Ex01
|
Child Name
: |
anObject
|
Child Design
: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
Text
|
string
|
"Obj"
|
charHeight |
number
|
1.0 |
origin
|
point
|
Point(0, 0, 2)
|
Child Name
: |
newLocalFrame
|
Child Design
: |
:frameMixin_Ex01
|
[名前]
|
[タイプ]
|
指定値
|
scale
|
number
|
0.5 |
referenceFrame |
frame
|
anObject.localFrame |
例 4
Name:
|
frameMixin_Ex04
|
Design
: |
acDrawingDocument
|
Child Name
: |
originAxes
|
Child Design
: |
:frameMixin_Ex01
|
Child Name
: |
anObject
|
Child Design
: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
Text
|
string
|
"Obj"
|
charHeight |
number
|
1.0 |
yDirection |
vector
|
unitZ |
Child Name
: |
newLocalFrame
|
Child Design
: |
:frameMixin_Ex01
|
[名前]
|
[タイプ]
|
指定値
|
scale
|
number
|
0.5 |
referenceFrame |
frame
|
anObject.localFrame |
例 5
Name
: |
frameMixin_Ex05
|
Design
: |
acDrawingDocument
|
Child Name
: |
originAxes
|
Child Design
: |
:frameMixin_Ex01
|
Child Name
: |
anObject
|
Child Design
: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
Text
|
string
|
"Obj"
|
charHeight |
number
|
1.0 |
origin
|
point
|
Point(0, 0, 2)
|
xDirection |
vector
|
-unitY |
yDirection |
vector
|
unitZ |
Child Name
: |
newLocalFrame
|
Child Design
: |
:frameMixin_Ex01
|
[名前]
|
[タイプ]
|
指定値
|
scale
|
number
|
0.5 |
referenceFrame |
frame
|
anObject.localFrame |