PointMixin

概要

このデザインには、ゼロ寸法オブジェクト、つまりパーツの原点を拘束するのに必要な情報が含まれます。ジオメトリを表す位置パラメータのみを持つパーツに対する Mixin として使用します。

Mixin

標準

Name [タイプ] 説明
原点 このパーツの位置です。

例 1

名前: pointMixin_Ex01
Design: pointMixin
[名前] [タイプ]
q01 文字列 ""
q11 文字列 ""
q00 文字列 ""
q10 文字列 ""
子の名前: TLA
子のデザイン: :pointMixin
[名前] [タイプ] 指定値
原点 すべて point(0,0,0)
q01 すべて "YOF"
q11 すべて "3F"
q00 すべて "-"
q10 すべて "7"
color すべて "blue"
子の名前: hBar
子のデザイン: :Line
[名前] [タイプ] 指定値
thruPoint1 origin - unitY*0.25
thruPoint2 origin + unitY*0.25
lineWidth 文字列 "Heavy"
子の名前: vBar
子のデザイン: :Line
[名前] [タイプ] 指定値
thruPoint1 origin - unitX*0.25
thruPoint2 origin + unitX*0.25
lineWidth 文字列 "Heavy"
子の名前: txt01
子のデザイン: :Text
[名前] [タイプ] 指定値
[文字] 文字列 q01
v10 origin - unitX*0.05 + unitY*0.05
charHeight 数値 0.2
子の名前: txt11
子のデザイン: :Text
[名前] [タイプ] 指定値
[文字] 文字列 q11
v00 origin + unitX*0.05 + unitY*0.05
charHeight 数値 0.2
子の名前: txt00
子のデザイン: :Text
[名前] [タイプ] 指定値
[文字] 文字列 q00
v11 origin + unitX*0.05 + unitY*0.05
charHeight 数値 0.2
子の名前: txt10
子のデザイン: :Text
[名前] [タイプ] 指定値
[文字] 文字列 q10
v01 origin + unitX*0.05 - unitY*0.05
charHeight 数値 0.2

例 2

名前: pointMixin_Ex02
Design: Rectangle
[名前] [タイプ]
height 数値 1
数値 3
子の名前: flange
子のデザイン: :rectangle
[名前] [タイプ] 指定値
height 数値 0.1
数値
eBottom eBottom
lineWidth 文字列 "Heavy"
color 文字列 "olive green"
子の名前: fLeft
子のデザイン: :pointMixin_Ex01
[名前] [タイプ] 指定値
原点 midPoint(eLeft, center)
q01 すべて "YOF"
q11 すべて "3F"
q00 すべて "-"
q10 すべて "7"
color すべて "blue"
子の名前: fRight
子のデザイン: :pointMixin_Ex01
[名前] [タイプ] 指定値
原点 midPoint(eRight, center)
q01 すべて "YOF"
q11 すべて "3F"
q00 すべて "-"
q10 すべて "7"
color すべて "blue"

例 3

名前: pointMixin_Ex03
Design: Rectangle
[名前] [タイプ]
fDia 数値 1/4
fPtList list

Dim Qty As Integer

Dim eop As Number

Dim wid As Number

Dim pit As Number

Dim i As Integer

Dim result As List

eop = 2 * fDia + 0.06

wid = width - (2 * eop)

Qty = ceiling(wid / (4 * fDia))

pit = wid / Qty

result = {}

For i = 0 To Qty

Dim len As Number

Dim o As Point

len = eop + pit * i

o = v01 - (unitY * eop)

o = o + unitX * (pit * i + eop)

result = result + {o}

Next i

Return result

子の名前: TLA
子のデザイン: pointMixin_Ex03
[名前] [タイプ] 指定値
height すべて 1
すべて 3
子の名前: flange
子のデザイン: :rectangle
[名前] [タイプ] 指定値
height 数値 0.1
数値
eBottom eBottom
lineWidth 文字列 "Heavy"
color 文字列 "olive green"
子の名前: base
子のデザイン: :rectangle
[名前] [タイプ] 指定値
height 数値 height
数値
eBottom eBottom
lineWidth 文字列 "Heavy"
color 文字列 "olive green"
子の名前: fLeft
子のデザイン: :pointMixin_Ex01
[名前] [タイプ] 指定値
原点 midPoint(eLeft, center)
q01 すべて "YOF"
q11 すべて "3F"
q00 すべて "-"
q10 すべて "7"
color すべて "blue"
子の名前: fPt
子のデザイン: :pointMixin_Ex01
[名前] [タイプ] 指定値
Quantity 整数 length(fPtList)
原点 nth(child.index, fPtList)
q10 文字列 (If (Child.index = 1 Or (Child.index = length(fPtList))) Then " YOF " Else _ "")
q11 文字列 (If (Child.index = 1 Or (Child.index = length(fPtList))) Then format(" %d ", _
color 文字列 "red"
子の名前: fPt
子のデザイン: :pointMixin_Ex01
子の一覧かどうか
[名前] [タイプ] 指定値
Quantity 整数 length(fPtList)
原点 nth(child.index, fPtList)
q10 文字列 (If (Child.index = 1 Or (Child.index = length(fPtList))) Then " YOF " Else _ "")
q11 文字列

(If (Child.index = 1 Or (Child.index = length(fPtList))) Then format(" %d ", _

floor(fDia * 16)) Else "")

color 文字列 "red"