Author Topic: Help with shortcut menus while in GRREAD  (Read 3423 times)

0 Members and 1 Guest are viewing this topic.

Pepe

  • Newt
  • Posts: 87
Help with shortcut menus while in GRREAD
« on: January 03, 2008, 12:58:12 PM »
Hi, everybody!

First, I apologize for my English, as I'm not English native (probably you've noticed by my nick).

The question: How to identify which Shortcut menu is active, when SHORTCUTMENU variable is not 0,
              you can open multiple documents at once, and you are in a GRREAD loop.

Of course, all this via autolisp.

Better an example.

1.- Open ACAD, be sure SHORTCUTMENU variable is p.e. = 3 and you're able to open many documents at
    once (I can't remember which variable controls this last one).

2.- Run this little routine:

    (while (/= (car (setq gr (grread T 2))) 25)
      (if (= (car gr) 11) (progn (princ gr) (terpri)))
     )

3.- Click on the first item of POP1. Probably it will return '(11 524)'.
    That means you have 23 items in your default shortcutmenu (usually POP0 'SNAP').
    If you count them, you must avoid to count submenus heads and separators.

4.- End the routine with mouse right click.

5.- Draw a LINE.

6.- Right click mouse, and choose on the shorcut menu to repeat LINE, and do it.

7.- Then close this first document (you don't need to save it), and open a new one.

8.- Repeat steps 2 and 3. You'll see it won't return the same list; probably it will be '(11 514)'
    That means that the active Shortcutmenu has changed to POP501 'CMDEFAULT", which has 13
    items.

Changing to 'single documents' after doing all this stuff doesn't works. ACAD keeps the last
shortcut menu used.

Well, if anybody can help me, fine!. (If nobody can, at least keep it as a curiousity).

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Help with shortcut menus while in GRREAD
« Reply #1 on: January 03, 2008, 01:55:59 PM »