IAcSmSheetViews


The SheetViews interface.

available methods :

(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))
(vlax-invoke-method ssmgr "GetSheetFromLayout" layout sheet)
(setq sheetviews (vlax-invoke-method sheet 'GetSheetViews))

Note : "(scanUntilObject)" is a utility function contained in the sample Lisp files in folder "<LDSP>/SheetSetManager-Lisp-API/LISP Sample Code"

GetEnumerator

returns an enumerator for the sheet views in this collection

(setq iter (vlax-invoke-method sheetviews 'GetEnumerator))

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

Sync

updates the sheet views in this collection that are related to the provided according to the provided IAcSmAcDbLayoutReference in the specified AcDbDatabase

(setq layoutref (scanUntilObject iter "AcSmAcDbLayoutReference"))
(setq db (vla-get-Database doc))
(setq res (vlax-invoke-method sheetviews 'Sync layoutref db))

HRESULT Sync([in] IAcSmAcDbLayoutReference* pLayout, [in] IAcadDatabase* pDb)



©  Bricsys NV. All rights reserved.