Is there a way to force reload an enterprise cui without having to restart autocad?
Lisp possibly?
Thanks.
|
|
|
Is there a way to force reload an enterprise cui without having to restart autocad?
Lisp possibly?
Thanks.
This seems to work in some limited testing:
Code:(defun c:ReloadEnterpriseCui (/ ext ent main wscurrent) (if (and (setq ext (if (< (atoi (getvar 'acadver)) 18) ".cui" ".cuix")) (findfile (setq ent (strcat (getenv "EnterpriseMenuFile") ext))) (findfile (setq main (strcat (getenv "MenuFile") ext))) (setq wscurrent (getvar 'wscurrent)) ) (progn (setenv "EntepriseMenuFile" main) (command "._menu" "") (setenv "EntepriseMenuFile" ent) (command "._menu" "") (if (/= "" wscurrent) (setvar 'wscurrent wscurrent)) ) (prompt "\n** One (or both) CUI files not found ** ") ) )
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Thanks Blackbox.
In what situations did it not work?
I do not think you understood, and perhaps I could have been more precise; said another way:
I slapped this code together in the +/- 2 minutes I was waiting for my project engineer to get off of a call. I quickly tested it, and it seemed to work for me each time. Please let me know how this works for you?
LoL, Happy Friday!
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000