| Author |
Message |
cwd44
Guest
|
Posted:
Tue Apr 05, 2005 8:52 pm Post subject:
AtuoCAD 06 CUI menu |
|
|
Will this file insertion command still work in AutoCAD 2006 with CUI menus
(COMMAND "_.menuunload" "test.mnu" )
(COMMAND "_.menuload" "test.mnu" )
(MENUCMD (STRCAT "p" (ITOA 4) "=+" "test.mnu" ".pop1")).
|
|
| Back to top |
|
 |
Terry W. Dotson
Guest
|
Posted:
Tue Apr 05, 2005 9:27 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
cwd44 wrote:
| Quote: | Will this file insertion command still work in AutoCAD 2006 with CUI menus.
|
Your likely to have problems with this. I had to go to using the menu
api (introduced in 2000).
Terry |
|
| Back to top |
|
 |
cwd44
Guest
|
Posted:
Tue Apr 05, 2005 10:07 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Do you have a sample of this menu api code.
Thank you Terry for your help.
|
|
| Back to top |
|
 |
Terry W. Dotson
Guest
|
Posted:
Tue Apr 05, 2005 11:50 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
cwd44 wrote:
| Quote: | Do you have a sample of this menu api code.
|
See the AutoCAD help and search these groups for vla-get-Menus. My
stuff is VBA.
Terry |
|
| Back to top |
|
 |
Daniel J. Altamura, R.A.
Guest
|
Posted:
Wed Apr 06, 2005 7:33 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
To maintain compatibility with previous releases, I use something like this:
(setq FILEDIA (getvar "filedia"))
(setvar "filedia" 0)
(command "_menuunload" "Test")
(if (and (>= (atof (substr (getvar "acadver") 1 4)) 16.2) (findfile
"Test.cui"))
(command "_menuload" "Test.cui") ; 2006 and above
(command "_menuload" "Test.mnu") ; 2005 and below
)
(menucmd "P4=+Test.pop1")
(setvar "filedia" FILEDIA)
Dan
--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------
"cwd44" <nospam@address.withheld> wrote in message
news:12506461.1112719968519.JavaMail.jive@jiveforum1.autodesk.com...
| Quote: | Will this file insertion command still work in AutoCAD 2006 with CUI menus
(COMMAND "_.menuunload" "test.mnu" )
(COMMAND "_.menuload" "test.mnu" )
(MENUCMD (STRCAT "p" (ITOA 4) "=+" "test.mnu" ".pop1")). |
|
|
| Back to top |
|
 |
Gary Fowler
Guest
|
Posted:
Wed Apr 06, 2005 8:25 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Good question. I have 2006 now, but not installed.
If 2006 uses a cui menu, how do you load old mnl and dll files (that worked
with the mnu)?
--
Gary Fowler - Architect
gdfowler@hotmail.com
"Daniel J. Altamura, R.A." <Altamura@frontiernet.net> wrote in message
news:4254012e_2@newsprd01...
| Quote: | To maintain compatibility with previous releases, I use something like
this:
(setq FILEDIA (getvar "filedia"))
(setvar "filedia" 0)
(command "_menuunload" "Test")
(if (and (>= (atof (substr (getvar "acadver") 1 4)) 16.2) (findfile
"Test.cui"))
(command "_menuload" "Test.cui") ; 2006 and above
(command "_menuload" "Test.mnu") ; 2005 and below
)
(menucmd "P4=+Test.pop1")
(setvar "filedia" FILEDIA)
Dan
--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------
"cwd44" <nospam@address.withheld> wrote in message
news:12506461.1112719968519.JavaMail.jive@jiveforum1.autodesk.com...
Will this file insertion command still work in AutoCAD 2006 with CUI
menus
(COMMAND "_.menuunload" "test.mnu" )
(COMMAND "_.menuload" "test.mnu" )
(MENUCMD (STRCAT "p" (ITOA 4) "=+" "test.mnu" ".pop1")).
|
|
|
| Back to top |
|
 |
Daniel J. Altamura, R.A.
Guest
|
Posted:
Wed Apr 06, 2005 9:29 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
It works the same as before. If you have a menu called Test.mnu, Test.mns,
or Test.cui, then Test.mnl will automatically be loaded. Of course the old
legacy menu files (.mnu/.mns) will be recompiled first into a new .cui file
of the same name, plus a .mnr file. I don't know about .dll's containing
bitmaps. I haven't tried.
Dan
--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------
"Gary Fowler" <fowler@architettura-inc.com> wrote in message
news:42540e21$1_3@newsprd01...
| Quote: | Good question. I have 2006 now, but not installed.
If 2006 uses a cui menu, how do you load old mnl and dll files (that
worked with the mnu)? |
|
|
| Back to top |
|
 |
Gary Fowler
Guest
|
Posted:
Wed Apr 06, 2005 10:47 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Thanks
If someone has tried the dll file, please reply.
--
Gary Fowler - Architect
gdfowler@hotmail.com
"Daniel J. Altamura, R.A." <Altamura@frontiernet.net> wrote in message
news:42541c67_2@newsprd01...
| Quote: | It works the same as before. If you have a menu called Test.mnu,
Test.mns, or Test.cui, then Test.mnl will automatically be loaded. Of
course the old legacy menu files (.mnu/.mns) will be recompiled first into
a new .cui file of the same name, plus a .mnr file. I don't know about
.dll's containing bitmaps. I haven't tried.
Dan
--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------
"Gary Fowler" <fowler@architettura-inc.com> wrote in message
news:42540e21$1_3@newsprd01...
Good question. I have 2006 now, but not installed.
If 2006 uses a cui menu, how do you load old mnl and dll files (that
worked with the mnu)?
|
|
|
| Back to top |
|
 |
Terry W. Dotson
Guest
|
Posted:
Thu Apr 07, 2005 1:16 am Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Gary Fowler wrote:
| Quote: | If someone has tried the dll file, please reply.
|
Yes, it continues to use bitmaps rolled into DLLs.
Terry |
|
| Back to top |
|
 |
Gary Fowler
Guest
|
Posted:
Thu Apr 07, 2005 1:38 am Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Thanks
--
Gary Fowler - Architect
gdfowler@hotmail.com
"Terry W. Dotson" <nospam@invalid.com> wrote in message
news:425451ce$1_1@newsprd01...
| Quote: | Gary Fowler wrote:
If someone has tried the dll file, please reply.
Yes, it continues to use bitmaps rolled into DLLs.
Terry |
|
|
| Back to top |
|
 |
cwd44
Guest
|
Posted:
Thu Apr 07, 2005 1:55 am Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Thank you Dan
That will work |
|
| Back to top |
|
 |
Daniel J. Altamura, R.A.
Guest
|
Posted:
Thu Apr 07, 2005 2:20 am Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
You are quite welcome. I'm glad to have helped.
--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------
"cwd44" <nospam@address.withheld> wrote in message
news:11162842.1112824542185.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | Thank you Dan
That will work |
|
|
| Back to top |
|
 |
Guest
|
Posted:
Mon Apr 11, 2005 7:52 pm Post subject:
Re: AtuoCAD 06 CUI menu |
|
|
Do you guys have problem using Autocad 2006 command "CUI", can you
change the order of menu?
I have a user defined menu loaded, but I want my own menu look like
File Edit ....MyMenu ...Window Help
But I found it's hard to change the menu order, the menu looks good in
the CUI interface, but does not work like it looks even I click "Apply"
button.
Thanks all. |
|
| Back to top |
|
 |
|
|
|
|