IAcSmSheetSetMgr


The main SheetSetManager interface.

available methods :

(setq cad (vlax-get-acad-object))
(setq ssmgr (vla-GetInterfaceObject  cad  "BricscadSm.AcSmSheetSetMgr"))

CreateDatabase

creates a new DST database with specified filename, optionally using a .dst template file and a boolean flag whether to always (re-)create if already existing; returns the IAcSmDatabase object

(setq smdb (vlax-invoke-method  ssmgr  'CreateDatabase "C:/SSM/ssmDb.dst"  [ template | "0"  [ :vlax-true | :vlax-false ]]))

HRESULT CreateDatabase ([in] BSTR filename, [in, optional, defaultvalue("0")] BSTR templatefilename, [in, optional, defaultvalue(-1)] VARIANT_BOOL bAlwaysCreate, [out, retval] IAcSmDatabase** db)

OpenDatabase

opens the specified existing DST database file, optionally using a boolean flag whether to open an already opened DST file; returns the IAcSmDatabase object

(setq smdb (vlax-invoke-method  ssmgr  'OpenDatabase  dstfile  [ :vlax-true | :vlax-false ]))

HRESULT OpenDatabase ([in] BSTR filename, [in, optional, defaultvalue(-1)] VARIANT_BOOL bFailIfAlreadyOpen, [out, retval] IAcSmDatabase** db)

FindOpenDatabase

queries the SheetSetManager for the specified, already opened DST database file ; returns the IAcSmDatabase object, or NIL

(setq smdb (vlax-invoke-method  ssmgr  'FindOpenDatabase  "C:/SSM/ssmDb.dst"))

HRESULT FindOpenDatabase ([in] BSTR filename, [out, retval] IAcSmDatabase** ppDb)

CloseAll

closes all currently open DST database objects (IAcSmDatabase)

(vlax-invoke-method  ssmgr  'CloseAll)

HRESULT CloseAll ()

Close

closes the specified DST database object (IAcSmDatabase)

(vlax-invoke-method  ssmgr  'Close  smdb)

HRESULT Close ([in] IAcSmDatabase* db)

GetParentSheetSet

searches the main SheetSet for the given layout in the specified dwg file; returns the IAcSmSheetSet object (if found) by reference, and the IAcSmDatabase object as return value

(setq smdb (vlax-invoke-method  ssmgr  'GetParentSheetSet  dwgfile  "A1"  'parentSheet))

HRESULT GetParentSheetSet ([in] BSTR dwg, [in] BSTR layout, [out] IAcSmSheetSet** sheetSet, [out, retval] IAcSmDatabase** pSmDb)

GetSheetFromLayout

searches the main SheetSet for the given layout object (IAcadLayout); returns the IAcSmSheetSet object (if found) by reference, and the IAcSmDatabase object as return value

(setq smdb (vlax-invoke-method ssmgr  'GetSheetFromLayout  layout  'sheetSet))

HRESULT GetSheetFromLayout ([in] IAcadObject* pAcDbLayout, [out] IAcSmSheet** sheet, [out, retval] IAcSmDatabase** pSmDb)

GetDatabaseEnumerator

returns an iterator (IAcSmEnumDatabase) for all opened DST databases managed by the SheetSetManager

(setq iter (vlax-invoke-method  ssmgr  'GetDatabaseEnumerator))

HRESULT GetDatabaseEnumerator ([out, retval] IAcSmEnumDatabase** enumerator)


©  Bricsys NV. All rights reserved.