Right Click Context Menus

Discussion in 'AutoCAD' started by trathbun, Jan 2, 2005.

  1. trathbun

    trathbun Guest

    I have right-click context menus that allow the user of a custom lisp program to do a right-click and select from a list of choices. However, I have recently moved to a new computer and the context menus are no longer working for my custom lisp commands. I have tried re-compiling the menu without any success.
    Has anyone else experienced this ? Any ideas ?

    Thanks,
    Tim Rathbun
     
    trathbun, Jan 2, 2005
    #1
  2. trathbun

    Walt Engle Guest

    Are your lsp routines in a folder that can be found by the Search file path?
     
    Walt Engle, Jan 2, 2005
    #2
  3. trathbun

    trathbun Guest

    Yes, the lisp routines run but the associated context menus do not display.
    Context menus above ***POP518 are being ignored.

    Thanks,
    Tim Rathbun
     
    trathbun, Jan 2, 2005
    #3
  4. trathbun

    Walt Engle Guest

    When you say "recompiling without any success", does that mean your new POP is in the acad.mnu or the acad.mns?
     
    Walt Engle, Jan 2, 2005
    #4
  5. To enable options to display on a context menu you only need to correctly
    format the prompt, not edit any menu.

    The prompt should be in the format of:
    "descriptive text [option1/option2/option3] <option1>: "

    The square brackets ([]) enclose the possible options, each of which is
    separated by forward slashes (/). Capitalization on the options should be
    unique so that they can be entered from the keyboard also. If you want a
    default you need to enclose the default option _again_ in the angle brackets
    (<>).

    Sample:

    (getkword "\nSpecify diffuser type
    [Normal/Pan/Circular/Slot/lineaR/Wall/Louver] <Normal>: ")


    --
    R. Robert Bell


    I have right-click context menus that allow the user of a custom lisp
    program to do a right-click and select from a list of choices. However, I
    have recently moved to a new computer and the context menus are no longer
    working for my custom lisp commands. I have tried re-compiling the menu
    without any success.
    Has anyone else experienced this ? Any ideas ?

    Thanks,
    Tim Rathbun
     
    R. Robert Bell, Jan 2, 2005
    #5
  6. trathbun

    trathbun Guest

    They are in the acad.mnu

    Thanks,
    Tim Rathbun
     
    trathbun, Jan 3, 2005
    #6
  7. trathbun

    trathbun Guest

    Well yes or you can add them to the Acad.mnu by creating a specific ***pop that will be triggered by a specific program. I find this method to be much more flexible than the method you have described.
    I have been using this method for the last several years with out any problems. I recently loaded a new machine and I am finding that AutoCAD is ignoring anything above ***POP 518 on that particular machine.
    Thanks,
    Tim Rathbun
     
    trathbun, Jan 3, 2005
    #7
  8. trathbun

    Walt Engle Guest

    That's what I do - I deleted the POP with "help" (substituting my own) and made two more, such as POP10 & POP11. That way, I have my own pulldown and cascading.
     
    Walt Engle, Jan 3, 2005
    #8
  9. trathbun

    Walt Engle Guest

    well.......that's partiall incorrect. Below is a sample:

    ***POP10
    **TEXT
    [&Text]
    [Change TEXT]^c^c^p(if (not chgtxt)(load "chgtxt"));CHGTXT
    [Re-position text to left]^c^c^p(IF (NOT TP)(LOAD "TP"));TP
    [Compress text to fit]^c^c^p(IF (NOT TXTFIT)(LOAD "TXTFIT"));TXTFIT
    [Underline Selected text]^c^c^p(if (not un)(load "un"));un
    [Overline Selected text]^c^c^p(if (not ol)(load "ol"));ol
    [Change text SIZE]^c^c^p(if (not chgts)(load "chgts"));CHGTS
    [Change text STYLE]^c^c^p(if (not chgsty)(load "chgsty"));CHGSTY
    [Change CASE of text]^C^C^P(if (not chcases)(load "chcases"));chcases
    [GLOBALLY change MTEXT to plain TEXT]^c^C^p(if (not mtt)(load "mtt"));mtt
    [--]
    [Text Leader - A]^c^c^p(IF (NOT LDR)(LOAD "LDR"));LDR
    [Sequentially Numbered Bubbles with leader]^c^c^p(if (not tag)(load "tag"));tag
    [--]
    [ADD TEXT]^c^c^p(if (not gt)(load "gt"));GT
    [--]
    [User's Title]^c^c^p(IF (NOT TITLE-X)(LOAD "TITLE-X"));TITLE-X
    [--]
    [Delete Applications]^c^c^p(if (not remregapps)(load "remregapps"));remregapps
     
    Walt Engle, Jan 3, 2005
    #9
  10. <shrug>

    Are you sure this machine is finding _your_ version of the menu? (findfile)
    ought to tell you. And you might find it easier to maintain the menu if you
    use partial menus.

    --
    R. Robert Bell


    Well yes or you can add them to the Acad.mnu by creating a specific ***pop
    that will be triggered by a specific program. I find this method to be much
    more flexible than the method you have described.
    I have been using this method for the last several years with out any
    problems. I recently loaded a new machine and I am finding that AutoCAD is
    ignoring anything above ***POP 518 on that particular machine.
    Thanks,
    Tim Rathbun
     
    R. Robert Bell, Jan 3, 2005
    #10
  11. trathbun

    j buzbee Guest

    R. Robert Bell <shrug>ed his sholders:

    Don't worry R. Your "simple" response has helped me solve a problem I've
    been beating my head against the wall now for about 2 mos.! Thanks!!!

    jb
     
    j buzbee, Jan 3, 2005
    #11
  12. trathbun

    trathbun Guest

    Yes it is finding the menu - all of my other customizing is working fine it is just not finding anything above ***POP518. I dont see how a partial menu would help it would still have the same problem. I am beginning to wonder if XP SP2 is causing the problem.
    Thanks,
    Tim Rathbun
     
    trathbun, Jan 3, 2005
    #12
  13. I'm glad I could help.

    --
    R. Robert Bell


    R. Robert Bell <shrug>ed his sholders:

    Don't worry R. Your "simple" response has helped me solve a problem I've
    been beating my head against the wall now for about 2 mos.! Thanks!!!

    jb
     
    R. Robert Bell, Jan 3, 2005
    #13
  14. So that is the only obvious difference between machines?

    --
    R. Robert Bell


    Yes it is finding the menu - all of my other customizing is working fine it
    is just not finding anything above ***POP518. I dont see how a partial menu
    would help it would still have the same problem. I am beginning to wonder
    if XP SP2 is causing the problem.
    Thanks,
    Tim Rathbun
     
    R. Robert Bell, Jan 3, 2005
    #14
  15. trathbun

    Dommy2Hotty Guest

    How about you post the code from ***POP517 to ***POP519? Same version of AutoCAD as your previous machine?
     
    Dommy2Hotty, Jan 3, 2005
    #15
  16. trathbun

    trathbun Guest

    Yes that is the only difference. The menu works fine on Windows 2000 and XP SP1. Everthing else I have added to the menu, pull-downs, toolbars, etc. function correctly including the changes to ***POP500 thru ***POP518. But not those above ***POP518.
    Thanks,
    Tim Rathbun
     
    trathbun, Jan 3, 2005
    #16
  17. trathbun

    trathbun Guest

    I don't think there is a problem with the menu, the lisp programs that are keyed to the context menus set the shortcutmenu variable so I am sure that is not the problem. Works fine on 7 other machines in Autocad 2004 and 2005 but not this one.
    Thanks,
    Tim Rathbun
     
    trathbun, Jan 3, 2005
    #17
  18. trathbun

    trathbun Guest

    Here's an example of a context menu that is failing. I have determined that it is only happening where the context menu is referenced to a lisp program. The lisp routine loads and runs but the short-cut menu does not display. I have been setting shortcutmenu to 6 and everything has worked fine until now. For some reason the compilier is ignoring the **command definitions.

    ***POP529
    **COMMAND_RSD_Change_Linetype
    [Context menu for RSD_Change_linetype]
    ID_RSD_CHANGE_LINETYPE [RSD CHANGE LAYER-LINETYPE]
    ID_RSD_HIDDEN [Change Linetype to HIDDEN]"HIDDEN"
    ID_RSD_HIDDEN2 [Change Linetype to HIDDEN2]"HIDDEN2"
    ID_RSD_DASHED [Change Linetype to DASHED]"DASHED"
    ID_RSD_CENTER [Change Linetype to CENTER]"CENTER"
    ID_RSD_PHANTOM [Change Linetype to PHANTOM]"PHANTOM"
    ID_RSD_CONTINUOUS [Change Linetype to CONTINUOUS]"CONTINUOUS"
    [--]
    ID_RSD_HIDDEN_LT-MATL [Change Linetype-Layer to HIDDEN, LT-MATL]"HIDDEN,LT-MATL"
    ID_RSD_HIDDEN2_LT-MATL [Change Linetype-Layer to HIDDEN2, LT-MATL]"HIDDEN2,LT-MATL"
    ID_RSD_DASHED_LT-MATL [Change Linetype-Layer to DASHED, LT-MATL]"DASHED,LT-MATL"
    ID_RSD_CENTER_LT-MATL [Change Linetype-Layer to CENTER, LT-MATL]"CENTER,LT-MATL"
    ID_RSD_PHANTOM_LT-MATL [Change Linetype-Layer to PHANTOM, LT-MATL]"PHANTOM,LT-MATL"
    ID_RSD_HIDDEN_M-MATL [Change Linetype-Layer to HIDDEN, M-MATL]"HIDDEN,M-MATL"
    ID_RSD_DASHED_M-MATL [Change Linetype-Layer to DASHED, M-MATL]"DASHED,M-MATL"
    [--]
    ID_RSD_CENTER_JOISTS [Change Linetype-Layer to CENTER, JOISTS]"CENTER,JOISTS"
    ID_RSD_PHANTOM_JOISTS [Change Linetype-Layer to PHANTOM, JOISTS]"PHANTOM,JOISTS"
    ID_RSD_CONT_JOISTS [Change Linetype-Layer to CONTINUOUS, JOISTS]"CONTINUOUS,JOISTS"
    [--]
    ID_RSD_CONT_DIM1 [Change Linetype-Layer to CONTINUOUS, DIM1]"CONTINUOUS,DIM1"
    ID_RSD_CONT_LT-MATL [Change Linetype-Layer to CONTINUOUS, LT-MATL]"CONTINUOUS,LT-MATL"
    ID_RSD_CONT_M-MATL [Change Linetype-Layer to CONTINUOUS, M-MATL]"CONTINUOUS,M-MATL"
    ID_RSD_CONT_H-MATL [Change Linetype-Layer to CONTINUOUS, H-MATL]"CONTINUOUS,H-MATL"
     
    trathbun, Jan 4, 2005
    #18
  19. trathbun

    trathbun Guest

    Robert,
    I finally discovered what was causing the problem. I have been using a program called "Quik-Pik" for years without any problems. However it appears to be causing a conflict with the right-click buttons. I first noticed it with the newer machine running XP SP2. I have since downloaded the latest version and it appears even more "bugged-up" than the last version.
    Thanks for trying to help,
    Tim Rathbun
     
    trathbun, Jan 5, 2005
    #19
  20. I'm happy you found a solution. Although I bet Owen isn't too happy to hear
    this.

    --
    R. Robert Bell


    Robert,
    I finally discovered what was causing the problem. I have been using a
    program called "Quik-Pik" for years without any problems. However it appears
    to be causing a conflict with the right-click buttons. I first noticed it
    with the newer machine running XP SP2. I have since downloaded the latest
    version and it appears even more "bugged-up" than the last version.
    Thanks for trying to help,
    Tim Rathbun
     
    R. Robert Bell, Jan 5, 2005
    #20
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.