I have done the first of your suggestions. I registered the DLL using
regasm.com in this manner: “regasm expcg.dll /tlb:expcg.tlb”. I then
went into VBA for AutoCAD and went to “add reference” and then “expcg”
to add as a reference, this all works fine. I then declare it this way:
“Dim Calcs As New ExpCG.ExpCG_Calcs” This also goes as planned. Now when
I try to use it, I get an error. I try to use it this by setting a value
withing the dll “Calcs.UnitWeight = 144” and I get this error.
Run-time error ‘-2147024894 (80070002)’:
The system cannot find the file specified.
Before using regasm.exe, I copied the dll file from the project
directory into the Windows\system32\ directory.
William Cruz