Mech:constraint-set-isenabled

提供:GizmoLabs - だいたい CAD LISP なサイト
2023年6月9日 (金) 08:11時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{BCAD_LISP_MECH}} ; 構文 : (mech:constraint-set-isenabled ''constraint'' flg) ; 機能 : 指定された拘束が有効(T)か無効(NIL)かを定義する。 ; 引数 :* constraint : 問い合わせる拘束の整数値 :* flg : T=有効 or NIL=無効 ; 戻り値 : セット成功なら T、無効なら nil Memo パラメータ変数識別子については、パラメータ関数を参…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(mech:constraint-set-isenabled constraint flg)


機能
指定された拘束が有効(T)か無効(NIL)かを定義する。


引数
  • constraint : 問い合わせる拘束の整数値
  • flg : T=有効 or NIL=無効


戻り値
セット成功なら 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-isenabled constraint nil) ; 無効にする
T



関連事項