TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Aldo 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.
-
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).
-
What @dgorsman said.
You can even run that (vl-load-com) manually before trying to load your code as a quick test.
-
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
-
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
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:
-
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?
-
I did what they told me but the problem persists
Please help
-
What version of AutoCAD are you running?