IAcSmCalloutBlocks

提供:GizmoLabs - だいたい CAD LISP なサイト

Sheet CalloutBlockReferences のインターフェース。


使用可能なメソッド

(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 iter (vlax-invoke-method smdb 'GetEnumerator))
(setq calloutBlocks (scanUntilObject iter "AcSmCalloutBlocks"))
  • メモ:
"(scanUntilObject) "は、"<LDSP>/SheetSetManager-Lisp-API/LISP Sample Code" フォルダのサンプルLispファイルに含まれるユーティリティ関数。


項目 内容
Add adds the specified IAcSmAcDbBlockRecordReference component to this collection
(setq iter (vlax-invoke-method calloutBlocks 'GetEnumerator))
(setq firstBlock (vlax-invoke-method iter 'Next))
(vlax-invoke-method calloutBlocks 'Add firstBlock)

HRESULT Add ([in] IAcSmAcDbBlockRecordReference* pBlkRef)
Remove removes the specified IAcSmAcDbBlockRecordReference component from this collection
(setq iter (vlax-invoke-method calloutBlocks 'GetEnumerator))
(setq firstBlock (vlax-invoke-method iter 'Next))
(vlax-invoke-method calloutBlocks 'Remove firstBlock)

HRESULT Remove ([in] IAcSmAcDbBlockRecordReference* pBlkRef)
GetEnumerator returns an enumerator for the IAcSmAcDbBlockRecordReference components in this collection
(setq iter (vlax-invoke-method calloutBlocks 'GetEnumerator))

HRESULT GetEnumerator ([out, retval] IAcSmEnumAcDbBlockRecordReference** enumerator)

関連記事