AutoCAD Map 3D Developer

AutoCAD Map 3D Developer

Reply
Contributor
vedantgoyal
Posts: 18
Registered: ‎06-18-2008
Message 1 of 3 (460 Views)

Error:Automation error [-2147467259 (80004005)]

460 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
Distinguished Contributor
mateaus
Posts: 120
Registered: ‎10-10-2011
Message 2 of 3 (372 Views)

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.

Board Manager
Daniel.Du
Posts: 215
Registered: ‎12-23-2008
Message 3 of 3 (348 Views)

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.