DBX Save and SaveAs Issue

Discussion in 'AutoCAD' started by Rob Starz, Sep 18, 2003.

  1. Rob Starz

    Rob Starz Guest

    I am using ADT 2004 and need to change all Walls to a set height. If I open
    a document using ObjectDBX , change all wall heights and do Object.save
    nothing is changed. If I use the Object.SaveAs it works. Is this a bug
    with Aec Objects. All other objects work fine. below is a sample code of
    what I am using.

    Public Sub testDXB()

    Dim DbxDoc As AxDbDocument
    Set DbxDoc =
    ThisDrawing.Application.GetInterfaceObject("ObjectDBX.AxDbDocument.16")
    On Error Resume Next
    DbxDoc.Open "G:\Documents and Settings\Rob\My Documents\My Autodesk
    Architectural Desktop Projects\Ross Residence\Constructs\First Floor.dwg"
    Dim obj As AcadEntity
    For Each obj In DbxDoc.ModelSpace
    If TypeOf obj Is AecWall Then
    obj.baseheight = 360
    End If
    Next obj
    DbxDoc.Save '<<<nothing gets save here
    DbxDoc.SaveAs "c:\test.dwg" '<this save the changes I made.
    On Error Resume Next
    Set DbxDoc = Nothing
    end sub
     
    Rob Starz, Sep 18, 2003
    #1
  2. Rob Starz

    Mark Propst Guest

    I'm waaaay not an expert but my understanding was there was no .Save method
    for dbx, only .SaveAs ...or that Save just didnt' work. There for the
    equivalent of .Save is .SaveAs (this name)
     
    Mark Propst, Sep 18, 2003
    #2
  3. Rob Starz

    Rob Starz Guest

    I thought that they fixed this bug in 2004. I talked to somenoe at Autodesk
    and they just noticed this issue also. Maybe it wasn't fixed.

    Waiting for reply from Autodesk.

    Thanks Mark
     
    Rob Starz, Sep 18, 2003
    #3
  4. Rob Starz

    Rob Starz Guest

    That is what I am doing now but I was wondering if there is a time differnce
    from a Save or Saveas on a 3 meg file. I want to use the fastest approach.
     
    Rob Starz, Sep 18, 2003
    #4
  5. Rob Starz

    Mark Propst Guest

    I think theres a definite time difference
    with Saveas it will take a second or two
    with Save you'll have to wait for adesk to fix it....maybe years!
    :)
    sorry, couldn't help it
     
    Mark Propst, Sep 18, 2003
    #5
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.