Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is wrong with lisp execution in 2015?

4 REPLIES 4
Reply
Message 1 of 5
tim.turner
907 Views, 4 Replies

What is wrong with lisp execution in 2015?

In Autocad 2015 some lisp auto loads (acaddoc.lsp, appload, cui) and some don't, some lisp runs after a manual load and some don't. I use a DimNote.lsp from the Cadalyst tips (attached) which runs fine in 2012 and now it returns this message: "Command: DN ; error: quit / exit abort". Have checked files that don't work in the VLIDE and have not found any errors yet. Has there been some lisp requirement added like the (vl-load-com) was a while back?

4 REPLIES 4
Message 2 of 5
_gile
in reply to: tim.turner

Hi,

 

Looking at the error message an the LISP code, I think the error is raised by the (exit) calling here:

  (setq DCL_ID (load_dialog "dimnote.dcl"))
  (if (not (new_dialog "dimnote" DCL_ID))
    (exit)
  )

 Is the dimnote.dcl file in a search path ?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 5
tim.turner
in reply to: _gile

Yes it is. Won't attach as a .dcl though, I changed the extension.,

Message 4 of 5
_gile
in reply to: tim.turner

Hi,

 

I tested with AutoCAD 2015.

Both 'DimMote.lsp' and 'DimNote.dcl' are in the same folder.

This folder is added to the AutoCAD search paths and trusted paths in the Files tab of the Options... dialog.

All works fine for me.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 5 of 5
Gary_J_Orr
in reply to: _gile

Gilles brings up the most critical part:
you have upgraded from 3012 to 2015...
there have been a lot of "security" changes in that time...
even if you have enabled a force load for unsecure locations for the lisp file, if the dcl isn't in a trusted location, well... there ya go...
so, ensure that both the lisp and dcl are in a trusted location (and, if the dcl is in a subfolder, ensure that subfolders of the trusted location(s) are included in the trust... help files and many, many posts on the subject since 2013 sp1 will take you a long way...
Gary J. Orr
(Your Friendly Neighborhood) CADD/BIM/VDC Applications Manager
http://www.linkedin.com/in/garyorr

aka (current and past user names):
Gary_J_Orr (GOMO Stuff 2008-Present); OrrG (Forum Studio 2005-2008); Gary J. Orr (LHB Inc 2002-2005); Orr, Gary J. (Gossen Livingston 1997-2002)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost