If you have an AutoLISP file that does not work or exits like the sample below there might be an easy solution.
; error: no function definition: VLAX-GET-ACAD-OBJECT
Try running (vl-load-com) or add it to the beginning of the LSP file.
#<VLA-OBJECT IAcadApplication 00d73d3c>
Now it works as expected without any errors.
What is (vl-load-com) ?
This function loads the extended AutoLISP functions provided with Visual LISP. The Visual LISP extensions implement ActiveX and AutoCAD reactor support through AutoLISP, and also provide ActiveX utility and data conversion functions, dictionary handling functions, and curve measurement functions.
It does not hurt to add (vl-load-com) to your LSP files to make sure it works. If the extensions already are loaded (vl-load-com) does nothing.