Problems with customizing user toolbars

Discussion in 'AutoCAD' started by fox21703, May 21, 2004.

  1. fox21703

    fox21703 Guest

    I know how to create new icons to work with my AutoCAD but in some cases the icons duplicate. For instance, I create an icon called PLJ and one called WB in a dwg file. The icon looks good until I go to another dwg then either the PLJ icon shows up twice or the WB will show up twice in the same toolbar which I have given a specific name.
    Why does this happen? Aren't the icon names given by default by the AutoCAD program or am I supposed to give them names ( say iconPLJ and iconWB)?
     
    fox21703, May 21, 2004
    #1
  2. fox21703

    Big 'D' Guest

    I have found it helpful to 'save as' icons to a specific directory. My customized icons are used by all machines I manage. So I save icons to a network directory. That way all machines have the same icons but, it also allows me instant recovery in case of power failure, etc. This could just as easily be a directory on you hard drive. Even if you choose to default to your AutoCAD support directory it would be a good idea to back them up so you don't lose them if you have to reload AutoCAD. AutoCAD does save them but I prefer to give them a name that makes sense to me.
    D
     
    Big 'D', May 21, 2004
    #2
  3. I guess you are talking that the picture of the icons is the same, not the
    function. This is because AutoCAD saves the picture as *.bmp files with just
    a number for name and sometimes they are on different folders (one in
    Express folder other in Support folder - depend in which toolbar you placed
    it) but with the same name/number. To avoid this:
    1. Save As the icon picture somewhere (as Big D suggested).
    Generally this should be enough, but I had some problems even after this
    point, so my suggestion is to go further with
    2. Open acad.mns file (found in C:\Documents and Settings\<user
    name>\Application Data\Autodesk\AutoCAD 2004\R16.0\enu\Support) and open it
    with notepad.
    Find your button (make search for the name you given to it). The row should
    look something like this:
    ID_UserButton_17 [_Button("User Defined Button", "RCDA8467.bmp",
    "RCDATA_16_BLANK")]^C^C<your macro here>
    Replace the *.bmp picture name (in this example RCDA8467.bmp) with the
    picture name you had given to the icon when did Save As. Close the file.
    3. Avoid placing custom buttons in Express toolbars.
    Hope this will help.
    John

    the icons duplicate. For instance, I create an icon called PLJ and one
    called WB in a dwg file. The icon looks good until I go to another dwg then
    either the PLJ icon shows up twice or the WB will show up twice in the same
    toolbar which I have given a specific name.
    AutoCAD program or am I supposed to give them names ( say iconPLJ and
    iconWB)?
     
    John Georgiev, May 21, 2004
    #3
  4. fox21703

    JRWalker Guest

    A problem with autocad is that it doesn't save icons the way you save them
    (by a file name in a folder). It reassigns them to numbers. That is okay but
    sometimes it gets "confused" and mixes up the numbers. You can force the
    icon names in your mnu file and then let autocad recompile the mns, mnr,
    etc... We have gone to embedding the icon in dll files and it works great.
    The Afralisp site has info about using ResourceHacker and embedding your
    icons. I hope this helps a little.

    JRW



    the icons duplicate. For instance, I create an icon called PLJ and one
    called WB in a dwg file. The icon looks good until I go to another dwg then
    either the PLJ icon shows up twice or the WB will show up twice in the same
    toolbar which I have given a specific name.
    AutoCAD program or am I supposed to give them names ( say iconPLJ and
    iconWB)?
     
    JRWalker, May 21, 2004
    #4
  5. BTW I forgot to warn you - AutoCAD should have the path to the place you
    saving your icon picture file in case to find it. You can choose one of the
    places listed in Tools/Options/Files/Support File Search Path or Add your
    path there.
    John

     
    John Georgiev, May 21, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.