「Bim:pset-bimtypes-has」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{AutoLISP}} ; 構文 : (bim:pset-bimtypes-has ''psetName'' ''bimType'' ) ; 機能 : 指定された プロパティセット psetName が、与えられた bimタイプ「BIMType」を用いているかどうかを返す。 ; 引数 :* psetName … 指定された "BIMType" に対して検証される PropertySet 名の文字列。 :* bimType … 特定の "BIMType" のグローバル名またはローカル名の文字列。 ; 戻り値 : 指定された…」)
 
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
27行目: 27行目:
(vl-load-bim)
(vl-load-bim)
(bim:create-propertyset "MyPerInstance-1" "MyPSet-1" T T)
(bim:create-propertyset "MyPerInstance-1" "MyPSet-1" T T)
(bim:pset-bimtypes-add "MyPerInstance-1" "BimDbWindow")
(bim:pset-bimtypes-has "MyPerInstance-1" "BimDb窓")  
T
T
(bim:pset-bimtypes-add "MyPerInstance-1" "Window")
(bim:pset-bimtypes-has "MyPerInstance-1" "")
T
T
(bim:pset-bimtypes-has "MyPerInstance-1" "秘密の地下室")
nil
</pre>
</pre>



2023年11月25日 (土) 10:15時点における最新版

構文
(bim:pset-bimtypes-has psetName bimType )


機能
指定された プロパティセット psetName が、与えられた bimタイプ「BIMType」を用いているかどうかを返す。


引数
  • psetName … 指定された "BIMType" に対して検証される PropertySet 名の文字列。
  • bimType … 特定の "BIMType" のグローバル名またはローカル名の文字列。


戻り値
指定されたプロパティセットが指定された「BIMType」を使用している場合は T、そうでない場合は nil


メモ

  • psetName 引数は プロパティセットの「name」または「label」を参照することができる。
  • 関数 (bim:pset-bimtypes-list-all) と (bim:pset-bimtypes-list) と (bim:pset-bimtypes-add) を参照。


サンプル
(vl-load-bim)
(bim:create-propertyset "MyPerInstance-1" "MyPSet-1" T T)
(bim:pset-bimtypes-has "MyPerInstance-1" "BimDb窓") 
T
(bim:pset-bimtypes-has "MyPerInstance-1" "窓")
T
(bim:pset-bimtypes-has "MyPerInstance-1" "秘密の地下室")
nil

関連事項