Error: no function definition: VLAX-GET-ACAD-OBJECT

Error: no function definition: VLAX-GET-ACAD-OBJECT

mcweb
Enthusiast Enthusiast
1,738 Views
11 Replies
Message 1 of 12

Error: no function definition: VLAX-GET-ACAD-OBJECT

mcweb
Enthusiast
Enthusiast

This is ACAD 2022.

Several of my lsp routines that I use are getting this error or similar:

 

Error: no function definition: VLAX-GET-ACAD-OBJECT

 

I first noticed it was Lee Mac's text2mtext https://lee-mac.com/text2mtext.html

But it has done this on several other lsp routines I use.

What did I do? HELP!

0 Likes
Accepted solutions (1)
1,739 Views
11 Replies
Replies (11)
Message 2 of 12

komondormrex
Mentor
Mentor

does not restarting autocad help?

0 Likes
Message 3 of 12

mcweb
Enthusiast
Enthusiast

Thanks. No unfortunately not. I have restarted the computer also (Windows10)

0 Likes
Message 4 of 12

pkenewell6347
Advocate
Advocate

You need to load the Visual LISP environment first with (vl-load-com).

0 Likes
Message 5 of 12

mcweb
Enthusiast
Enthusiast

 

I have read about this and must be doing something wrong. Please tell me exactly how to do this.

 

I tried pasting (vl-load-com) to the command line and <enter>. ACAD accepts it with no error or message. I still get the VLAX-GET-ACAD-OBJECT error when running various lsp routines. I have also tried this command in various locations inside the lsp routine itself, with no luck.

0 Likes
Message 6 of 12

pendean
Community Legend
Community Legend

@mcweb wrote:

This is ACAD 2022...


is this an OEM version of AutoCAD 2022?
Or do you have a major add-on installed?

 

Is this a sudden new problem? aka it used to work just fine?

 

Why do you need that LISP when core AutoCAD 2022 already has tool that built-in?

0 Likes
Message 7 of 12

mcweb
Enthusiast
Enthusiast
Accepted solution

I did the registry solution from here:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Error-no-function-...

I modified the paths for my version 2022.
I saw that page before in my searching, but it wasn't the exact error message, and I didn't want to mess it up more.
 

 

 
0 Likes
Message 8 of 12

mcweb
Enthusiast
Enthusiast

Lee Mac's is more functional.

0 Likes
Message 9 of 12

pkenewell6347
Advocate
Advocate

@mcweb wrote:

 

I have read about this and must be doing something wrong. Please tell me exactly how to do this.

 

I tried pasting (vl-load-com) to the command line and <enter>. ACAD accepts it with no error or message. I still get the VLAX-GET-ACAD-OBJECT error when running various lsp routines. I have also tried this command in various locations inside the lsp routine itself, with no luck.


(vl-load-com) should just be loaded before running any Visual LISP (vl, vla, vlax, vlr) functions. I usually put it at the top of my lisp file to run immediately when loading.

If this is not working - you may have a corrupted Install. I don't know what would cause otherwise.

0 Likes
Message 10 of 12

paullimapa
Mentor
Mentor

Try reset AutoCAD?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 11 of 12

mcweb
Enthusiast
Enthusiast

Now the question is, why did it happen? 🤔

 

0 Likes
Message 12 of 12

mcweb
Enthusiast
Enthusiast

It was happening on several other ones besides Lee Mac's.

0 Likes