Author Topic: autocad does not recognize any lisp routine  (Read 2232 times)

0 Members and 1 Guest are viewing this topic.

Aldo

  • Newt
  • Posts: 22
autocad does not recognize any lisp routine
« on: April 19, 2018, 05:17:53 PM »
I'm working with AutoCAD 2018 on Windows 10, this CAD doesnt allow me to load any LISP routine. I tried in other PC with the same files and I dont have problem but in my PC I have error "No function definition: VLAX-GET-ACAD-OBJECT".

I'm looking for some directión. Tranks & regards.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: autocad does not recognize any lisp routine
« Reply #1 on: April 19, 2018, 06:17:17 PM »
Two possible solutions.

One: the problem computer isn't calling (vl-load-com) when drawings are opening.  This may be an oversight, or a global LISP file isn't being loaded due to the security settings.

Two: something has been installed or uninstalled incorrectly.  I've seen this happen when installing a BETA release new version alongside an older version.  If a call to (vl-load-com) doesn't fix anything, and case Two is correct, you'll need to do a full uninstall/re-install (repair and reset doesn't cut it).
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: autocad does not recognize any lisp routine
« Reply #2 on: April 19, 2018, 06:39:56 PM »
What @dgorsman said.

You can even run that (vl-load-com) manually before trying to load your code as a quick test.

Aldo

  • Newt
  • Posts: 22
Re: autocad does not recognize any lisp routine
« Reply #3 on: April 19, 2018, 07:38:56 PM »
I uninstalled the program completely but it did not solve the problem when I installed it again

As I run (vl-load-com) manually, please explain

thanks for your quick response

Dlanor

  • Bull Frog
  • Posts: 263
Re: autocad does not recognize any lisp routine
« Reply #4 on: April 19, 2018, 09:04:43 PM »
Before you run your lisp type "(vl-load-com)" on the commandline and hit enter, or put (vl-load-com) before the first line or as the last line in the lisp file then load it,  or put this

Code - Auto/Visual Lisp: [Select]
  1. (defun s::startup ()
  2. )
  3.  

at the end of your autocad20xxdoc.lsp which is normally found in c:\Program Files\Autodesk\Autocad20xx-*\Support\  where (20xx) is the year of your versions and (-*) will normally be the language.

That way it will always be loaded when Autocad starts. Unless of course you're running LT and can't use lisp files :wideeyed2:

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: autocad does not recognize any lisp routine
« Reply #5 on: April 20, 2018, 07:42:32 AM »
Actually you should not modify the built in acad2xxxdoc.lsp (or acad2xxx.lsp) files since a reinstall, repair, etc. will cause your changes to be lost.

If you're going to go startup file method, then use acaddoc.lsp.

Ref: https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-Customization/files/GUID-FDB4038D-1620-4A56-8824-D37729D42520-htm.html

@Aldo, can you make a video of this happening so we can see it?

Aldo

  • Newt
  • Posts: 22
Re: autocad does not recognize any lisp routine
« Reply #6 on: April 20, 2018, 02:31:51 PM »
I did what they told me but the problem persists

Please help

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: autocad does not recognize any lisp routine
« Reply #7 on: April 25, 2018, 07:53:28 PM »
What version of AutoCAD are you running?