Sheet Sets Via Excel

Discussion in 'AutoCAD' started by mriemen, Oct 13, 2004.

  1. mriemen

    mriemen Guest

    I would like to utilize the Sheet Set database to drive a drawing log compiled in Excel. I am having trouble though working with sheet set objects via Excel's VBA interface. Does anyone have any suggestions?

    Can I connect to a sheet set database via ADODB?

    Thanks for any help
     
    mriemen, Oct 13, 2004
    #1
  2. mriemen

    krispy Guest

    I'm having trouble initiating a AcSmSheetSetMgr object in excel as well, I have tried using both New AcSMSheetSetMgr and GetObject("filename", AcSmSheetSetMgr).
    Has anyone succesfully connected to the sheet set manager object in excel? or gained access to the sheet set database?
     
    krispy, Dec 9, 2004
    #2
  3. Krispy-
    No one has responded to this question yet. If I have any luck on my own I will post soemthing for you.
     
    mattr@imperialwoodwork, Dec 10, 2004
    #3
  4. mriemen

    Ed Jobe Guest

    Does this help? It works in acad.

    Sub test()
    Dim oSMM As AcSmSheetSetMgr
    Dim oDB As AcSmDatabase

    Set oSMM = GetObject("", "AcSmComponents.AcSmSheetSetMgr")
    Set oDB = oSMM.OpenDatabase("test.dst")
    Debug.Print oDB.GetFileName

    End Sub


    --
    ----
    Ed
    ----
    have tried using both New AcSMSheetSetMgr and GetObject("filename",
    AcSmSheetSetMgr).
    or gained access to the sheet set database?
     
    Ed Jobe, Dec 10, 2004
    #4
  5. I don't believe access to the SSM object is possible outside of AutoCAD.
    After all, you cannot get the object even with Visual LISP.

    --
    R. Robert Bell


    Does this help? It works in acad.

    Sub test()
    Dim oSMM As AcSmSheetSetMgr
    Dim oDB As AcSmDatabase

    Set oSMM = GetObject("", "AcSmComponents.AcSmSheetSetMgr")
    Set oDB = oSMM.OpenDatabase("test.dst")
    Debug.Print oDB.GetFileName

    End Sub


    --
    ----
    Ed
    ----
    have tried using both New AcSMSheetSetMgr and GetObject("filename",
    AcSmSheetSetMgr).
    or gained access to the sheet set database?
     
    R. Robert Bell, Dec 10, 2004
    #5
  6. mriemen

    Ed Jobe Guest

    I agree. I only mentioned it worked in acad because my initial test in xl
    failed (even with acad running). I din't have time to try other methods. I
    would suggest that they work from within acad and link to xl instead.
     
    Ed Jobe, Dec 10, 2004
    #6
  7. mriemen

    krispy Guest

    Thanks for trying, I was hoping to produce a drawing list in excel that will update when opened in excel. I will just have to rely on exporting the sheet list table to .csv format and setting up the data link in excel... the only problem here is that when you have the subsets as subheadings the .csv output by AutoCAD inserts spaces into the unused "merged" cells adjacent to the headings. So if you have fixed width columns in Excel the end of the subheadings are cropped because the adjacent cell is not truly empty. So I created a VB project that will strip those spaces out of the .csv, but now that is three steps to update the drawing list (four if you include the "update sheet list table" in AutoCAD)... i was hoping for just one (ie. Open the file in Excel).
    thanks anyway
     
    krispy, Dec 12, 2004
    #7
  8. mriemen

    Mattr@IWC Guest

    To take it one step further, I would like to allow other users to update the sheet set data (via XL or even Access) to then drive the engineers titleblock data. I don't want users to have to have Acad on their machine to do this. We currently are running a proprietary system that drives all project data via ADODB and wanted the sheet set manager to step into it's place.
     
    Mattr@IWC, Dec 13, 2004
    #8
  9. mriemen

    Ed Jobe Guest

    I have developed such an app for ADT using .NET, but it uses xml. I havn't
    looked into what format the ssm uses.

    --
    ----
    Ed
    ----
    the sheet set data (via XL or even Access) to then drive the engineers
    titleblock data. I don't want users to have to have Acad on their machine to
    do this. We currently are running a proprietary system that drives all
    project data via ADODB and wanted the sheet set manager to step into it's
    place.
     
    Ed Jobe, Dec 13, 2004
    #9
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.