Mech:parameters-set-unitstype

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(mech:parameters-set-unitstype parameter unitsType )


機能
指定されたパラメータ(整数)に、新しい単位unitsTypeモード(integer, None=0, Length=1, Area=2, Volume=3)を割り当てる。


引数
  • parameter : 問い合わせるパラメータ識別子の整数
  • unitsType : パラメータの新しい単位スタイル値(0-2)


戻り値
成功ならT、それ以外は nil


サンプル
(vl-load-mech)
2
(setq blkId (tblobjname "BLOCK" "*Model_Space"))
<Entity name: 4aaa68b0>
(setq param (mech:parameters-get-byname blkId "Length"))
971708080
(mech:parameters-set-unitstype param bc3dcUnitLength)
T
(meters-get-unitstype param)
1



関連事項