Acad2005 Sheet Set name and path?

Discussion in 'AutoCAD' started by cadmaxza, Jul 6, 2004.

  1. cadmaxza

    cadmaxza Guest

    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.
     
    cadmaxza, Jul 6, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.