IAcSmViewCategories

提供:GizmoLabs - だいたい CAD LISP なサイト
2022年8月8日 (月) 06:05時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{BCAD_LISP}} シートビューカテゴリーのインターフェイス。 使用可能なメソッド (setq cad (vlax-get-acad-object)) (setq doc (vla-get-Active…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

シートビューカテゴリーのインターフェイス。


使用可能なメソッド

(setq cad (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument cad))
(setq ssmgr (vla-GetInterfaceObject cad "BricscadSm.AcSmSheetSetMgr"))
(setq smdb (vlax-invoke-method ssmgr 'OpenDatabase dstfile))
(setq sheetset (vlax-invoke-method smdb 'GetSheetSet))
(setq viewCats (vlax-invoke-method sheetset 'GetViewCategories))


項目 内容
GetEnumerator returns an enumerator for the IAcSmViewCategory components in this collection
(setq iter (vlax-invoke-method viewCats 'GetEnumerator))
HRESULT GetEnumerator ([out, retval] IAcSmEnumViewCategory** enumerator)
CreateViewCategory creates a new IAcSmViewCategory component; the new component is NOT added to this collection
(setq viewcat (vlax-invoke-method viewCats 'CreateViewCategory "NewViewCategory" "test category" "99"))
HRESULT CreateViewCategory ([in] BSTR name, [in] BSTR description, [in] BSTR id, [out, retval] IAcSmViewCategory** viewCat)
RemoveViewCategory removes the specified IAcSmViewCategory component from this collection
(setq res (vlax-invoke-method viewCats 'RemoveViewCategory viewcat))
HRESULT RemoveViewCategory ([in] IAcSmViewCategory* viewCat)
GetDefaultViewCategory returns the 'default' IAcSmViewCategory component of this collection
(setq viewcat (vlax-invoke-method viewCats 'GetDefaultViewCategory))
HRESULT GetDefaultViewCategory ([out, retval] IAcSmViewCategory** ppItem)