VB6 and Autocad 2018

VB6 and Autocad 2018

Anonymous
Not applicable
2,856 Views
8 Replies
Message 1 of 9

VB6 and Autocad 2018

Anonymous
Not applicable

I have VB6 programs that connect to the AutoCAD opened drawing that I have selected

When I open a drawing now with AutoCAD 2018 the VB6 program no longer connects to the drawing

I have loaded the correct AutoCAD Type Library

Can any body help?????????????????????

0 Likes
2,857 Views
8 Replies
Replies (8)
Message 2 of 9

Ed__Jobe
Mentor
Mentor

When was the last time you had it working?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 9

Anonymous
Not applicable

A week ago. When Updated Windows 10

Since I posted my question, I find that when I compile program to exe and run application, it connects with the AutoCAD 2018 opened drawing

But in un-compiled, within VB6 it does not connect

 

Any Ideas 

0 Likes
Message 4 of 9

Anonymous
Not applicable

OK..I solved Problem.

It was a Visyal Basic issue.

I re-installed Visual Basic and problem fixed

Thanks for support

Message 5 of 9

Anonymous
Not applicable

I have a new problem with VB6 and AutoCAD 2018

Previously when in VB6, I highlighted an AutoCAD object,  (say ModelSpase) then pressing F1 brought up the AutoCAD ActiveX Reference Guide

Now it comes up with a message 'Unable to display Help'

How do I make VB6 display the AutoCAD ActiveX Guide??

 

Any Ideas

 

Thanks in advance

0 Likes
Message 6 of 9

norman.yuan
Mentor
Mentor

I think it is not VB6/Windows issue. It is AutoCAD2018. Up to AutoCAD 2017, in AutoCAD\s VBA editor, when any Acadxxxx class/method/property is highlighted in Object Browser window, press F1 button, or click "?" in Object Browser window's up-right corner, AutoCAD VBA help document opens. It is not any more with AutoCAD 2018. While there is less and less use of AutoCAD VBA/COM API, still, losing this convenient help document sucks, because AutoCAD's COM/VBA help document is (was) the best help document among all AutoCAD APIs' poor help documentation.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 7 of 9

ambrosl
Autodesk
Autodesk

The AutoCAD ActiveX/COM documentation is still available as a CHM file, but it seems that the CHM files are not currently being installed to the correct folder or the Help in the VBA IDE is not finding the files in the correct folder.

 

The CHM files you are looking for can be found here C:\Program Files\Common Files\Autodesk Shared\en-US:

  • acad_aag.chm - Developer's Guide
  • acadauto.chm - Reference Guide

It looks like if you copy the CHM files from C:\Program Files\Common Files\Autodesk Shared\en-US to C:\Program Files\Common Files\Autodesk Shared, then F1 works correctly from the VBA IDE; not sure if that will fix the issue with VB6 though but it might since the CHM files would now be located in the same folder as the TLB files.

 

Additionally, the ActiveX/COM documentation can also be found online with the rest of the AutoCAD Developer documentation at: http://help.autodesk.com/view/OARX/2018/ENU/



Lee Ambrosius
Senior Principal Content Experience Designer
For additional help, check out the AutoCAD Developer Documentation
0 Likes
Message 8 of 9

Anonymous
Not applicable

Thanks.........................It worked like a charm

0 Likes
Message 9 of 9

Anonymous
Not applicable

Como você consegue criar programas para autocad 2018 em vb6?


@Anonymouswrote:

A week ago. When Updated Windows 10

Since I posted my question, I find that when I compile program to exe and run application, it connects with the AutoCAD 2018 opened drawing

But in un-compiled, within VB6 it does not connect

 

Any Ideas 


 

0 Likes