Message 1 of 1
Acad2005 Sheet Set name and path?

Not applicable
07-01-2004
10:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings,
How do you get the name and path of currently opened sheet sets?
I copied the example sheet set dvb provided with 2005 and appended the following code in a new sub.
Dim sheetset As New sheetset
Dim ssMgr As New AcSmSheetSetMgr
Dim dbIter As IAcSmEnumDatabase
Dim db As IAcSmDatabase
Set dbIter = ssMgr.GetDatabaseEnumerator
Set db = dbIter.Next
Do While Not db Is Nothing
frm1.ComboBox1.AddItem db.GetName 'this is wrong - results in an empty string!
Set db = Nothing
Set db = dbIter.Next
Loop
Thanks,
Kevin.
How do you get the name and path of currently opened sheet sets?
I copied the example sheet set dvb provided with 2005 and appended the following code in a new sub.
Dim sheetset As New sheetset
Dim ssMgr As New AcSmSheetSetMgr
Dim dbIter As IAcSmEnumDatabase
Dim db As IAcSmDatabase
Set dbIter = ssMgr.GetDatabaseEnumerator
Set db = dbIter.Next
Do While Not db Is Nothing
frm1.ComboBox1.AddItem db.GetName 'this is wrong - results in an empty string!
Set db = Nothing
Set db = dbIter.Next
Loop
Thanks,
Kevin.