Vb 6.0 Project Run in All Autocad version(2007 ~ 2014 or over)

Vb 6.0 Project Run in All Autocad version(2007 ~ 2014 or over)

Anonymous
Not applicable
373 Views
1 Reply
Message 1 of 2

Vb 6.0 Project Run in All Autocad version(2007 ~ 2014 or over)

Anonymous
Not applicable

Dear All,

 

I'm using Vb.6.0 and Autocad 2007 to Autocad2014

I want to open a file in Autocad and do some mechanism( like insert, delete entity)


If I add project--> reference / Autocad 2007 Library its works good for Autocad 2007.

 

The problem is my client has different version of Autocad(2007~2014).If I select Autocad2007 library it will work perfectly for Autocad2007, but not other version of Autocad.

 

How can I customize the VB project to run all Autocad version(2007 ~ 2014)? If possible give me source sample.

 

Thanks in advance,
thenndral

 

0 Likes
374 Views
1 Reply
Reply (1)
Message 2 of 2

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> I'm using Vb.6.0 and Autocad 2007 to Autocad2014

EXE or as DLL?

 

One option is to remove the references to AutoCAD lib's and run your project with late-binding/all declarations as "Object" instead of the specific object-type.

I would not do that as this is difficult to develop, difficult t debug and teh chance for runtime errors is quite high as type conflicts are not recognized during compilation.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes