Mech:constraint-set-directions

提供:GizmoLabs - だいたい CAD LISP なサイト
2023年6月7日 (水) 08:50時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{BCAD_LISP_MECH}} ; 構文 : (mech:constraint-set-directions ''constraint'' ''mode'') ; 機能 : 指定された拘束の方向モードを定義します。 ; 引数 :* constraint : 編集する拘束の整数値 :* mode : 3DConstraintsディレクションの値0〜3のいずれか。 ; 戻り値 : 成功なら T、それ以外は nil ;サンプル <pre class="brush:autolisp;"> (vl-load-mech) 2 (setq blkId (tblobjname "BLOCK" "*Model_Space")) <Entity name…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(mech:constraint-set-directions constraint mode)


機能
指定された拘束の方向モードを定義します。


引数
  • constraint : 編集する拘束の整数値
  • mode : 3DConstraintsディレクションの値0〜3のいずれか。


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


サンプル
(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-get-directions constraint)
0
(mech:constraint-set-directions constraint 2)
T
(mech:constraint-get-directions constraint)
2



関連事項