Upgrading from AutoCAD21 to '25, Windows 10 to 11. Lisps wont load

Upgrading from AutoCAD21 to '25, Windows 10 to 11. Lisps wont load

pit4MSVJ
Explorer Explorer
2,097 Views
14 Replies
Message 1 of 15

Upgrading from AutoCAD21 to '25, Windows 10 to 11. Lisps wont load

pit4MSVJ
Explorer
Explorer

Any advice on the root cause? I have attempting using the Appload and CUI functions without any luck. Please help, I have 6 more units with the same problem

0 Likes
Accepted solutions (1)
2,098 Views
14 Replies
Replies (14)
Message 2 of 15

Sea-Haven
Mentor
Mentor

Sounds strange, check that you have support paths set for say where you load your lisps from, with Acad you also need to set your trusted paths again to where you have your lisps saved. Once done you should be able to do (load "yourlispfile") just by name.

 

To load say a custom menu use menuload and choose the mnu or Cui or CUIX. 

0 Likes
Message 3 of 15

paullimapa
Mentor
Mentor

if the lisps are not protected code, would you be willing to share one that does not load here so others in the community could try to see if they're successful in loading it in AutoCAD 2025 running Windows 11?


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

pit4MSVJ
Explorer
Explorer

I turned secureload function to 0 and had no luck

0 Likes
Message 5 of 15

pendean
Community Legend
Community Legend
Share your LISP here for others to test.
0 Likes
Message 6 of 15

pit4MSVJ
Explorer
Explorer

Hi Paul,

Thanks for the willingness to help! This community is great! Attached is the lisp and the error thread received in AutoCAD. I would love to know the results of the community testing this lisp with their respective system.

Lisp Error 10-22-24.pngLisp Error 10-22-24.png

 

 

0 Likes
Message 7 of 15

pit4MSVJ
Explorer
Explorer

 

Thanks for the willingness to help. Attached is the lisp file and the error thread i received.

 

Lisp Error 10-22-24.pngLisp Error 10-22-24.png

0 Likes
Message 8 of 15

pendean
Community Legend
Community Legend

@pit4MSVJ wrote:

Thanks for the willingness to help. Attached is the lisp file and the error thread i received.

Your LISP fails because it is trying to insert a DWG file that is not found in your search paths.

You don't have a LISP problem, you have a missing DWG file problem (If I create a generic DWG with that name in a generic path applicable to my PC, your LISP finishes just fine)

pendean_0-1729603055232.pngpendean_0-1729603055232.png

 

pendean_1-1729603077138.pngpendean_1-1729603077138.png

 

 

pendean_0-1729603298283.pngpendean_0-1729603298283.png

 

0 Likes
Message 9 of 15

pit4MSVJ
Explorer
Explorer

Wow! Great response. I am impressed with your knowledge. I am fairly new to the coding of the lisp. Do you have a recommended solution for a shared office that everyone uses the same lisps and they are pulled from the server?

0 Likes
Message 10 of 15

pit4MSVJ
Explorer
Explorer

The path included in the lisp code is the actual source of the lisp file. Please excuse my limited knowledge.

0 Likes
Message 11 of 15

pendean
Community Legend
Community Legend

@pit4MSVJ Place all shared blocks in a locked folder or folders (IT task) on your server, then add the path to that folder(s) to each AutoCAD profile being used here in OPTIONS command (you might need to restart your AutoCAD session if you want to test it)

 

pendean_1-1729606761596.pngpendean_1-1729606761596.png

 

0 Likes
Message 12 of 15

pendean
Community Legend
Community Legend
Accepted solution

@pit4MSVJ wrote:

The path included in the lisp code is the actual source of the lisp file. Please excuse my limited knowledge.


I missed this reply from you: pathing in lisp needs two \\ and not just one \ 

... "X:\\filesfolder\\nextfolder\\nextsubfolder\\myfilename" ...

0 Likes
Message 13 of 15

Sea-Haven
Mentor
Mentor

Agree with @pendean, we had multiple users but all custom programs were on the server. This included custom menu's. So if you make a custom menu you need to menuload it only once on all pc's. If you add new programs then add to your server custom.mnu just use menuload on your PC, as the CUI/CUIX will be saved to the server, when a user starts a new session of Cad the new menu will be available, they don't do anything. Yes need IT to give you permission, just a comment, the other users had access but were not interested in how it all worked so never bothered to lock, worked there for 17 years no probs.

 

My old setup had 4 custom menu's, with 130+ lisps behind.

 

Ok the good news you can use a lisp to setup all your pcs that point to a server, the lisp sets trusted paths, support paths, default template, save the junk directory and so on. The only thing that was custom for a user was their own toolbars that they liked and again had a script for each user. So when we did an upgrade a few minutes later it was all set up.

 

Can provide the setup.lsp just ask.

 

Ps IT decided to change from P: & S: to L: only, just had to change in any programs to suit, but 99% of programs depended on support path so still worked.

0 Likes
Message 14 of 15

pit4MSVJ
Explorer
Explorer

The mapping was incorrect and now fixed. Thanks to a great community full of helpful people!

0 Likes
Message 15 of 15

pit4MSVJ
Explorer
Explorer

I appreciate the assistance and helpful advice. The mapping was incorrect.

0 Likes