CUI Frustration

CUI Frustration

mid-awe
Collaborator Collaborator
201 Views
3 Replies
Message 1 of 4

CUI Frustration

mid-awe
Collaborator
Collaborator
Hi all,

I have been searching the ng for a solution and have found any. This is the issue, I have followed all directions carefully including the advice given in the "Notes on the philosophy of CUI" and I am experiencing strange results with the ACAD.CUI & ACETMAIN.CUI when loaded as partial CUI Files.
In the past (with ACAD2004) I would edit the office.mns file and save it to the server and I had a button in one of the toolbars that when clicked would run a batch file that copied the new file from the server to the client support folder, then unload the office menu files and reloaded all necessary files. Now, I've attempted to do the same with the office.cui file and strange things have been happening. First, once the files are unloaded and then reloaded the partial cui files are dropped even after using wscurrent "Common workspace". I resolved this by reloading office.cui and then ACAD.cui & ACETMAIN.cui, but I am getting duplicate menus File-Help and all express tools toolbars are visible which I like to keep hidden until needed. I worked around this issue by removing those toolbars and menus from the cui files with the obvious associated problems that type of work around now presents when trying to access the express tools toolbars. Shouldn't the show/hide status of these toolbars be stored in my workspace? Below is the code if it makes any difference.

Has anyone else run into this issue? Anyone have a solution?
I realize I'll have to restore everything back to the default and start again, but for now I have to work this way since I've become greatly frustrated and have resorted to seeking help here.

[code](defun updtAcad (/ cui cui2 cui3)
(COMMAND "START" "P:\Acad2007-UPDATE.BAT")
(setvar "CMDECHO" 0)
(LOAD "ACAD")
(LOAD "ACADDOC")
(command "_CUIUNLOAD" "office")
(if (not (menugroup "office"))
(if (and (setq cui (findfile "office.cui"))
(setq cui2 (findfile "acad.cui"))
(setq cui3 (findfile "acetmain.cui"))
)
(command "_cuiload" cui)
(prompt
(strcat "\n\n *** WARNING *** Unable to locate " cui)
)
)
)
(progn (command "_cuiload" strFile2)
(command "_cuiload" strFile3)
)
(setvar "WSCURRENT" "PrimaryNP")
)[/code]
0 Likes
202 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Loading/unloading is fraught with problems.

Here is what I've done with great success in the last year:

Each user has a local main cui file in their support folder.

The enterprise cui file is located in a RO network folder.
It stores partial cui files Acad.cui and AcETMain.cui, which are on the
support path (user's support folder) and _not_ stored with a specified
folder.

I have a local copy of the enterprise cui file that I modify when needed.
After verifying that the cui is ok, I copy it up to the network location,
regardless of current AutoCAD sessions. When the user's restart AutoCAD,
they get the new stuff.

--
R. Robert Bell


wrote in message news:5138249@discussion.autodesk.com...
Hi all,

I have been searching the ng for a solution and have found any. This is the
issue, I have followed all directions carefully including the advice given
in the "Notes on the philosophy of CUI" and I am experiencing strange
results with the ACAD.CUI & ACETMAIN.CUI when loaded as partial CUI Files.
In the past (with ACAD2004) I would edit the office.mns file and save it
to the server and I had a button in one of the toolbars that when clicked
would run a batch file that copied the new file from the server to the
client support folder, then unload the office menu files and reloaded all
necessary files. Now, I've attempted to do the same with the office.cui file
and strange things have been happening. First, once the files are unloaded
and then reloaded the partial cui files are dropped even after using
wscurrent "Common workspace". I resolved this by reloading office.cui and
then ACAD.cui & ACETMAIN.cui, but I am getting duplicate menus File-Help and
all express tools toolbars are visible which I like to keep hidden until
needed. I worked around this issue by removing those toolbars and menus from
the cui files with the obvious associated problems that type of work around
now presents when trying to access the express tools toolbars. Shouldn't the
show/hide status of these toolbars be stored in my workspace? Below is the
code if it makes any difference.

Has anyone else run into this issue? Anyone have a solution?
I realize I'll have to restore everything back to the default and start
again, but for now I have to work this way since I've become greatly
frustrated and have resorted to seeking help here.

[code](defun updtAcad (/ cui cui2 cui3)
(COMMAND "START" "P:\Acad2007-UPDATE.BAT")
(setvar "CMDECHO" 0)
(LOAD "ACAD")
(LOAD "ACADDOC")
(command "_CUIUNLOAD" "office")
(if (not (menugroup "office"))
(if (and (setq cui (findfile "office.cui"))
(setq cui2 (findfile "acad.cui"))
(setq cui3 (findfile "acetmain.cui"))
)
(command "_cuiload" cui)
(prompt
(strcat "\n\n *** WARNING *** Unable to locate " cui)
)
)
)
(progn (command "_cuiload" strFile2)
(command "_cuiload" strFile3)
)
(setvar "WSCURRENT" "PrimaryNP")
)[/code]
0 Likes
Message 3 of 4

Anonymous
Not applicable
R. Robert

^Yep, what he said . . .

jb
0 Likes
Message 4 of 4

mid-awe
Collaborator
Collaborator
Thanks guys,

That makes great sense.
0 Likes