Results 1 to 3 of 3

Thread: Runtime error -2145386390 (8020006a) in VBA Autocad 2007

  1. #1
    Member
    Join Date
    2013-08
    Posts
    2
    Login to Give a bone
    0

    Question Runtime error -2145386390 (8020006a) in VBA Autocad 2007

    Hello! I'm getting -2145386390 (8020006a) runtime error in VBA Autocad 2007, in Windows 7

    At this for each sentence:

    Code:
    Dim e As AcadEntity
    For Each e In ThisDrawing.ModelSpace <-- error
    (...)
    Next
    ThisDrawing.ModelSpace appears with the value "<>", but the drawing is not empty!

    This same program worked properly months ago... the only change I've made is installing Autocad 2010 in the same computer, so I've both installed now: 2007 and 2010. Maybe Autocad 2010 changed somenthing and now VBA 2007 doesn't work...

    Any idea?

    Thanks!
    Jose
    From Spain

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Runtime error -2145386390 (8020006a) in VBA Autocad 2007

    Did you ever try to use the same dvb in 2010? If so, it got recompiled for 2010 and 2007 won't be able to find the correct object types. Working in 2007, you will have to go to Tools>References> and change the MISSING reference to the 2010 type library back to the 2007 type library. Then save the project as a different name, or just don't use it in 2010. The same way that acad automatically upgrades a dwg from an earlier version when you open it, it will automatically upgrade your dvb if it was created in an earlier version.
    C:> ED WORKING....


    LinkedIn

  3. #3
    Member
    Join Date
    2013-08
    Posts
    2
    Login to Give a bone
    0

    Default Re: Runtime error -2145386390 (8020006a) in VBA Autocad 2007

    Thanks, but it doesn't work... I had tried it in 2010 (you supposed well), but when I go to Tools > References it is still using the 2007 type library, and not the 2010 type library... so, this didn't solve the problem...

    although... many thanks!

Similar Threads

  1. Replies: 2
    Last Post: 2009-12-14, 04:55 PM
  2. Replies: 12
    Last Post: 2009-01-30, 11:45 PM
  3. AutoCAD LT 2006 - SaveAs R12 shuts down AutoCAD and shows a Runtime Error
    By dragon.of.fate in forum AutoCAD LT - General
    Replies: 10
    Last Post: 2006-08-22, 10:58 PM
  4. AutoCAD 2007 error when Plotting - ERROR: Graphics Not Generated
    By hausmeister25 in forum AutoCAD General
    Replies: 2
    Last Post: 2006-08-08, 04:16 PM
  5. Microsoft Visual C++ Runtime Library....Runtime Error
    By robertb.65723 in forum Inventor - General
    Replies: 6
    Last Post: 2004-10-28, 10:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •