Mech:constraint-get-type

提供:GizmoLabs - だいたい CAD LISP なサイト
2023年6月6日 (火) 07:38時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{BCAD_LISP_MECH}} ; 構文 : (mech:constraint-get-type ''constraint'' ) ; 機能 : 指定された拘束の3D拘束定数(タイプ)を返す。 ; 引数 :* constraint : 問い合わせる拘束の整数値 ; 戻り値 : 3D拘束定数の整数、またはNIL ;サンプル <pre class="brush:autolisp;"> (vl-load-mech) 2 (setq blkId (tblobjname "BLOCK" "*Model_Space")) <Entity name: a44cefc0> (setq grp (mech:…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(mech:constraint-get-type constraint )


機能
指定された拘束の3D拘束定数(タイプ)を返す。


引数
  • constraint : 問い合わせる拘束の整数値


戻り値
3D拘束定数の整数、または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
(setq ctype (mech:constraint-get-type constraint))
2



関連事項