Author Topic: Load CUIX file in "username/appdata" using lisp  (Read 1533 times)

0 Members and 1 Guest are viewing this topic.

jpcadconsulting

  • Newt
  • Posts: 56
Load CUIX file in "username/appdata" using lisp
« on: November 04, 2020, 12:10:12 PM »
Hi folks, this should be a simple one but I'm not having any luck.

I'm trying to create a line of code for a tool palette icon that loads a CUIX file.  It worked fine when the CUIX file was in "program files" but the new version of this software has it placed in the user's app data folder, so the path is different for each user.

So... the cuix I wan to load is here:

C:\Users\<<username>>\AppData\Roaming\Transoft Solutions\AutoTURN 11.0\Menus\AutoTURN.cuix

The line of code that used to work fine in the tool palette is:

Code: [Select]
^C^C(command "CUILOAD" "C:/Program Files/Transoft Solutions/AutoTURN 10.0/Menus/AutoTURN.cuix")
So I guess it's the username or login-name variable I'm having issues with.

Thanks for any help.  Stay safe!
Technology will save us all! *eyeroll*

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Load CUIX file in "username/appdata" using lisp
« Reply #1 on: November 04, 2020, 12:26:01 PM »
Code - Auto/Visual Lisp: [Select]
  1. (strcat (getenv "APPDATA")"\\Transoft Solutions\\AutoTURN 11.0\\Menus\\AutoTURN.cuix")

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Load CUIX file in "username/appdata" using lisp
« Reply #2 on: November 04, 2020, 12:53:57 PM »
Oy...what a pain.   Didn't realize they did that.

Does that load all the libraries and such as well?