Using IntelliCAD from Excel

#1
I would like to make drawings in IntelliCAD from Excel VBA. I tried couple ways to set up the instance of the IntelliCAD application in Excel without much success. Can anybody help. The last thing I tried:

Dim ICapp as IntelliCAD.Application
Dim Doc as IntelliCAD.Document
Set ICapp = CreateObject(“IntelliCAD.Application”)
Set Doc = ICapp.Documents.ADD

Excel gives me an error “ActiveX component can’t create object”. What did I do wrong?

#2
Tin Yin Lam,

The problem is the use of IntelliCAD in the CreateObject.

The developers of the COM objects used ICAD for some reason.

Try:
Set ICapp = CreateObject(“ICAD.Application”)

I am recalling this from memory and will look further into this if you are unsuccessful.

Please let me know how you get on.


------------------
Regards
John Finlay