Thursday, February 12, 2015

VBA error - Compile error: can't find project or library

The BeamDraw script was written in MS Visual Basic.

For a new installation of AutoCAD, you will first need to install VBA for AutoCAD.   You can find this on the Autodesk website.

You will get the compile error because the AutoCAD 2011 Type Library is missing.  Find a copy of C:\Program Files\Common Files\Autodesk Shared\acax18enu.tlb and copy it to the new computer.  It should not need to overwrite any existing file.  You can use the VBAIDE command to verify what is missing and locations for files.  Go to Tools, References when when Visual Basic window opens.



No comments: