Mech:constraint-set-measurement

提供:GizmoLabs - だいたい CAD LISP なサイト
2023年6月9日 (金) 08:17時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{BCAD_LISP_MECH}} ; 構文 : (mech:constraint-set-measurement ''constraint'' ''argIndex'' ''mode'' ) ; 機能 : 引数インデックスargIndexで指定された拘束の測定モードを定義する。 ; 引数 :* constraint : 問い合わせる拘束の整数値 :* argIndex : 第1定義体=0 または第2定義体=1 :* mode : MesurementMode の値 ; 戻り値 : セット成功なら T、無効なら nil…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(mech:constraint-set-measurement constraint argIndex mode )


機能
引数インデックスargIndexで指定された拘束の測定モードを定義する。



引数
  • constraint : 問い合わせる拘束の整数値
  • argIndex : 第1定義体=0 または第2定義体=1
  • mode : MesurementMode の値


戻り値
セット成功なら T、無効なら nil


Memo

すべての制約タイプがすべての測定モードをサポートするわけではない(または測定モードをまったくサポートしない)。


サンプル
(vl-load-mech)
2
(setq blkId (tblobjname "BLOCK" "*Model_Space"))
<Entity name: a44cefc0>
(setq grp (mech:get-constraintsgroup blkId))
2684693328
(setq constraints (mech:get-constraints grp))
(2684692368)
(setq constraint (nth 0 constraints))
2684692368
(mech:constraint-set-measurement constraint 1 bc3dcMeasurementModeCentralPoint)
NIL



関連事項