Community
AutoCAD MEP Forum
Welcome to Autodesk’s AutoCAD MEP Forums. Share your knowledge, ask questions, and explore popular AutoCAD MEP topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom toolbar question

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
265 Views, 6 Replies

custom toolbar question

NG'ers

how can custom toolbars be retained? with all of the mnu overwriting going
on, i don't how keep my customized toolbars and buttons from being lost
whenever the pulldown command is invoked.

your expert replies would most appreciated

bruce robinson in princeton, nj
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Keep all your customization in a separate menu file (and group), and
menuload it along with the rest of the menus. If you use google.com to
search the customization ng, you'll find lots of threads, but the docs
under the developer's reference is complete enough.


--
R. Robert Bell, MCSE
www.AcadX.com


".A. Bruce Robinson" wrote in message
news:0FFB7EA67B7C17F4225191077011333B@in.WebX.maYIadrTaRb...
| NG'ers
|
| how can custom toolbars be retained? with all of the mnu overwriting going
| on, i don't how keep my customized toolbars and buttons from being lost
| whenever the pulldown command is invoked.
|
| your expert replies would most appreciated
|
| bruce robinson in princeton, nj
|
|
Message 3 of 7
Anonymous
in reply to: Anonymous

I've found the easiest thing to do is Set up a few profiles as well.
FORMAT/OPTIONS go to the PROFILES tab and save. This will save your current menu settings so that if you ever accidentally change your pulldown configuration you can get preferred ones back easily. Believe me we all feel your pain. Autodesk has done a poor job on that part. No WARNING letting you know your current menus will be lost and the option to save your current settings under a User profile. You'd think that would have been common sense to have written in.
Message 4 of 7
Anonymous
in reply to: Anonymous

yes, that's a good idea - a spare profile as a holder for all custom items

bruce r


"jmcfaddn" wrote in message
news:f18529b.1@WebX.maYIadrTaRb...
I've found the easiest thing to do is Set up a few profiles as well.
FORMAT/OPTIONS go to the PROFILES tab and save. This will save your current
menu settings so that if you ever accidentally change your pulldown
configuration you can get preferred ones back easily. Believe me we all feel
your pain. Autodesk has done a poor job on that part. No WARNING letting you
know your current menus will be lost and the option to save your current
settings under a User profile. You'd think that would have been common sense
to have written in.
Message 5 of 7
Anonymous
in reply to: Anonymous

Hi all,

 

There is a solution to the problem with the menu
files being over written when you invoke them from the pulldown
menus.

 

 

You have to do some small changes in two of the
mnl-files, BSDT-ADT.mnl and bsdt4.mnl

1. Browse to C:\Documents and Settings\[your
login]\Application Data\Autodesk\Autodesk Building Systems
2004\R16.0\enu\Support

 

To avoid that your Building systems menu file is
overwritten you have to change this file:

BSDT-ADT.mnl

1. Double click on BSDT-ADT.mnl

2. Scroll down until you
find

(command "menu"
"BSDT.mnu")

3. Change it to

(command "menu"
"BSDT")

5. Save the file

 

If you have you toolbars defined in an external
menufile, instead of in the ABS menus, you could add this here as well
after the changed line.

 (command "menu"
"BSDT4")
 (command "menuload"
"MyOwnMenu")

 

To avoid that the ACAD and ADT menufiles is
overwritten you have to change this file:

bsdt4.mnl

1. Change this:

(defun switchtoADTMenu ()
 
(command "menu" "adt.mnu")
  (command "menuload"
"BSDT-ADT.mnu")
  (princ)
)

to this:

(defun switchtoADTMenu
()
  (command "menu"
"adt")
  (command "menuload" "BSDT-ADT")
 
(princ)
)

and this:

(defun switchtoACADMenu ()
  (command
"menu" "ACAD.mnu")
  (command "menuload" "BSDT-ADT.mnu")
 
(princ)
)


to this:

(defun switchtoACADMenu
()
  (command "menu"
"ACAD")
  (command "menuload" "BSDT-ADT")
 
(princ)
)

(=removing ".mnu" from the menu and menuload
commands)

 

 

The reason that this is happening is that
everytime you load an mnu-file, AutoCAD recompiles the toolbars
from scratch and write new mnr, mnc and mns files. (if you edit the toolbars in
AutoCAD, it's NOT saved in the mnu file, only in the mns,mnc and
mnr)

 

If you don't specify the extension for the
menufile, AutoCAD will only do this if there is no mns,mnr and mnc
fles

 

 

Hope this helps

Lars-Ake Johansson

Autodesk BSD QA


size=2>
 

 

> NG'ers
>

> how can custom toolbars be retained? with all of the mnu overwriting
going
> on, i don't how keep my customized toolbars and buttons from being
lost
> whenever the pulldown command is invoked.
>
> your
expert replies would most appreciated
>
> bruce robinson in
princeton, nj
>
>
Message 6 of 7
Anonymous
in reply to: Anonymous

Lars:

 

Thank you for your response. It is greatly
appreciated !  And if it would not be to greedy, could you give us the
fixes for the express tools group, which I where I need help the most
?

 

TIA for your expert replies

 

Bruce Robinson in Princeton. NJ
face=Arial size=2>

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Hi all,

 

There is a solution to the problem with the
menu files being over written when you invoke them from the pulldown
menus.

 

 

You have to do some small changes in two of the
mnl-files, BSDT-ADT.mnl and bsdt4.mnl

1. Browse to C:\Documents and Settings\[your
login]\Application Data\Autodesk\Autodesk Building Systems
2004\R16.0\enu\Support

 

To avoid that your Building systems menu file
is overwritten you have to change this file:

BSDT-ADT.mnl

1. Double click on BSDT-ADT.mnl

2. Scroll down until you
find

(command "menu"
"BSDT.mnu")

3. Change it to

(command "menu"
"BSDT")

5. Save the file

 

If you have you toolbars defined in an external
menufile, instead of in the ABS menus, you could add this here as well
after the changed line.

 (command "menu"
"BSDT4")
 (command "menuload"
"MyOwnMenu")

 

To avoid that the ACAD and ADT menufiles is
overwritten you have to change this file:

bsdt4.mnl

1. Change this:

(defun switchtoADTMenu ()
 
(command "menu" "adt.mnu")
  (command "menuload"
"BSDT-ADT.mnu")
  (princ)
)

to this:

(defun switchtoADTMenu
()
  (command "menu"
"adt")
  (command "menuload" "BSDT-ADT")
 
(princ)
)

and this:

(defun switchtoACADMenu ()
 
(command "menu" "ACAD.mnu")
  (command "menuload"
"BSDT-ADT.mnu")
  (princ)
)


to this:

(defun switchtoACADMenu
()
  (command "menu"
"ACAD")
  (command "menuload" "BSDT-ADT")
 
(princ)
)

(=removing ".mnu" from the menu and menuload
commands)

 

 

The reason that this is happening is that
everytime you load an mnu-file, AutoCAD recompiles the
toolbars from scratch and write new mnr, mnc and mns files. (if you edit the
toolbars in AutoCAD, it's NOT saved in the mnu file, only in the mns,mnc and
mnr)

 

If you don't specify the extension for the
menufile, AutoCAD will only do this if there is no mns,mnr and mnc
fles

 

 

Hope this helps

Lars-Ake Johansson

Autodesk BSD QA


size=2>
 

 

> NG'ers
>

> how can custom toolbars be retained? with all of the mnu overwriting
going
> on, i don't how keep my customized toolbars and buttons from
being lost
> whenever the pulldown command is invoked.
>
>
your expert replies would most appreciated
>
> bruce robinson in
princeton, nj
>
>
Message 7 of 7
Anonymous
in reply to: Anonymous

Hi,

 

You could add the following to BSDT-ADT.mnl just
below the changed lines:

 

 (if (findfile
"acetmain.mns")
  (progn
   (command "menuload"
"acetmain")
  )
 )

 

The complete function would look something like
this:

(defun AecbMenuRestore ()
   
(command "menu" "BSDT4")
    (command "menuload"
"MyOwnMenufile")
    (if (findfile
"acetmain.mns")
       
(progn
            (command
"menuload" "acetmain")
       
)
    )
    (princ)
)

 

 

Hope this helps

Lars-Ake Johansson

Autodesk BSD QA

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Lars:

 

Thank you for your response. It is greatly
appreciated !  And if it would not be to greedy, could you give us
the fixes for the express tools group, which I where I need help the most
?

 

TIA for your expert replies

 

Bruce Robinson in Princeton. NJ
face=Arial size=2>

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Hi all,

 

There is a solution to the problem with the
menu files being over written when you invoke them from the pulldown
menus.

 

 

You have to do some small changes in two of
the mnl-files, BSDT-ADT.mnl and bsdt4.mnl

1. Browse to C:\Documents and Settings\[your
login]\Application Data\Autodesk\Autodesk Building Systems
2004\R16.0\enu\Support

 

To avoid that your Building systems menu file
is overwritten you have to change this file:

BSDT-ADT.mnl

1. Double click on BSDT-ADT.mnl

2. Scroll down until you
find

(command "menu"
"BSDT.mnu")

3. Change it to

(command "menu"
"BSDT")

5. Save the file

 

If you have you toolbars defined in an
external menufile, instead of in the ABS menus, you could add this here
as well after the changed line.

 (command "menu"
"BSDT4")
 (command "menuload"
"MyOwnMenu")

 

To avoid that the ACAD and ADT menufiles is
overwritten you have to change this file:

bsdt4.mnl

1. Change this:

(defun switchtoADTMenu ()
 
(command "menu" "adt.mnu")
  (command "menuload"
"BSDT-ADT.mnu")
  (princ)
)

to this:

(defun switchtoADTMenu
()
  (command "menu"
"adt")
  (command "menuload" "BSDT-ADT")
 
(princ)
)

and this:

(defun switchtoACADMenu ()
 
(command "menu" "ACAD.mnu")
  (command "menuload"
"BSDT-ADT.mnu")
  (princ)
)


to this:

(defun switchtoACADMenu
()
  (command "menu"
"ACAD")
  (command "menuload" "BSDT-ADT")
 
(princ)
)

(=removing ".mnu" from the menu and menuload
commands)

 

 

The reason that this is happening is that
everytime you load an mnu-file, AutoCAD recompiles the
toolbars from scratch and write new mnr, mnc and mns files. (if you edit the
toolbars in AutoCAD, it's NOT saved in the mnu file, only in the mns,mnc and
mnr)

 

If you don't specify the extension for the
menufile, AutoCAD will only do this if there is no mns,mnr and mnc
fles

 

 

Hope this helps

Lars-Ake Johansson

Autodesk BSD QA


size=2>
 

 

>
NG'ers
>
> how can custom toolbars be retained? with all of the
mnu overwriting going
> on, i don't how keep my customized toolbars
and buttons from being lost
> whenever the pulldown command is
invoked.
>
> your expert replies would most appreciated
>

> bruce robinson in princeton, nj
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost