How to deploy Enterprise CUIX from ACAD.lsp with working Menus, no profile required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've spent the last few days trying to find a simple solution to this problem. I've seen the same problem submitted by multiple people but no fix. Below is how I got it to work, hopefully this might be of help to someone.
1. Create a new workspace in the acad.cuix by duplicating the Drafting & Annotation workspace, rename to suit eg. Workspace 1.
2. Select new workspace then select customise workspace, add new menus from your enterprise cuix. Click done & apply. (Note: You might need to give new menus a sequential POP# under aliases to ensure the show correctly.)
3. Go to transfer tab, transfer newly created workspace across & supporting lisp files if needed. Save customisations in new file, this will be you new cuix file.
4. In acad.lsp add this line of code, adjust path & filename to suit.
(vla-put-EnterpriseMenuFile *myFiles* (strcat *server* "\\CAD\\Support\\[file name here].cuix"))
Work with acad.lsp in this handout https://www.autodesk.com/autodesk-university/class/Deployments-and-AutoLISP-Strategies-Easy-Installa...
5. Add this code to specify the name of workspace previously created in cuix.
(setvar "WSCURRENT" "Workspace1")
6. Add this line to make menu bar visible always defaults to "0" otherwise.
(setvar "menubar" 1)
That's it, pretty simple just a matter of getting all the pieces in the right order. Its not perfect as the menubar will turn off when switching to another workspace & back again. Don't know how to fix that in code, in our office no one changes workspace that much so its not a major issue. Also if user creates custom arg for themselves that should fix it.