• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Map 3D Developer

    Reply
    Contributor
    Posts: 18
    Registered: ‎06-18-2008

    Error:Automation error [-2147467259 (80004005)]

    286 Views, 2 Replies
    09-16-2008 11:48 PM
    Can anyone tell me why i m getting a automation error

    My condition gets satisfied and after that i get automation error msgbox

    What am i doing wrong?

    For Each acadOBJ In ThisDrawing.ModelSpace
    boolVal = ODrcs_PB.Init(acadOBJ, True, False)
    Do While ODrcs_PB.IsDone = False
    If ODrcs_PB.Record.Item(iTypeFieldIndex).Value = PillarType Then
    MsgBox "Sucess"
    End If
    ODrcs_PB.Next
    Loop
    Next
    Please use plain text.
    Distinguished Contributor
    mateaus
    Posts: 117
    Registered: ‎10-10-2011

    Re: Error:Automation error [-2147467259 (80004005)]

    07-18-2012 05:44 AM in reply to: vedantgoyal

    I've got the same problem to do this

     

    robapp.Project.PrintEngine.SaveReportToFile fichier_sortie, I_OFF_RTF_JPEG

     

    but the command has worked good before.

     

    I don't know what has been changed.

    Please use plain text.
    ADN Support Specialist
    Posts: 103
    Registered: ‎12-23-2008

    Re: Error:Automation error [-2147467259 (80004005)]

    08-06-2012 08:49 PM in reply to: mateaus

    Which version of Map 3D are you using? 32bit or 64bit? Would you please provide a complete code snippet for test? 

     

    Since you are asking VBA questions, I would suggest you to migrate your VBA program to VB.net, please take a look at this blog: 

    http://through-the-interface.typepad.com/through_the_interface/2010/02/updated-devtv-autocad-vba-to-... 



    Daniel Du
    Developer Technical Services
    Autodesk Developer Network

    Please use plain text.