Page 1 of 1

Using IntelliCAD from Excel

Posted: Wed Apr 21, 2004 9:07 am
by Tin Yin Lam
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?

Posted: Thu Apr 22, 2004 3:19 am
by John Finlay
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