Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Application running in ACAD-2010 problem...?

Status
Not open for further replies.

edweberg

Technical User
Feb 23, 2007
11
US
I recently installed ACAD 2010 after using 2009 for a year. One homemade application, written in VB6 has worked perfectly in ACAD2009, but in ACAD2010 I get an error message which I don't know what to do with. The error message is "AutoCAD main window is invisible". Upon debug, the line of code which is tripping it up is: "AutoCAD.Application.ActiveDocument.Utility.GetEntity OBJPICK1, VAR1, STRPROMPT1

OBJPICK1 is dim'd as AcadBlockReference
VAR1 is dim'd as Variant
STRPROMPT1 is dim'd as String

Note: the AcadBlockReference datatype is not the same as the others (not blue); it may not be a valid data type. (How do I determine that?)

The main question is about what is causing the application to not work in ACAD 2010 and tell me the the ACAD main window is not visible?
Any ideas?

Thank you,

Erik
 
Contact company who made ACAD and ask them what they changed or if your really lucky there will be documentation either in the ACAD help files or the web site about the changes.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top