Most likely it is because you do not have a referance to the acad library.
First you must have acad installed on your system or the system that you are developing on. Then you need to select the AutoCad xxxx type library. This is when it should work.![]()