How to allow transparent zoom while useing GRRead?

Discussion in 'AutoCAD' started by James Maeding, Feb 3, 2004.

  1. We did that pick text or type value routine a while back on this NG.
    Well a user asked me why it crashed on a transparent command.

    try this:

    (grread NIL 14 2)

    note that if you pick a toolbar button, like the zoom out one, it gives back something like:
    (11 3402)

    So how would I allow the transparent command to run within a lisp?
    There is no way to detect what the toolbar button command was so I cannot mimic it in my routine.
    I usually put this kind of stuff in a while loop and keep looping if I dont get what I want.
    When I tried that, it simply ignored the zoom toolbar pick and the grread continued.

    So it doesnt crash on a toolbar pick, but the button does not run, the user has to zoom or pan with the mouse wheel.
    thx


    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, Feb 3, 2004
    #1
  2. James Maeding

    Rudy Tovar Guest

    Did it cause a regen?

    user has to zoom or pan with the mouse wheel.
     
    Rudy Tovar, Feb 3, 2004
    #2
  3. nupe.
    it did nothing. I can see the return value if I debug though.

    I checked some previous threads on this and looks like John Uhden is at the bleeding edge of things.
    I have not tried his code though as I am short on time...

    "Rudy Tovar" <>
    |>Did it cause a regen?
    |>
    |>|>> We did that pick text or type value routine a while back on this NG.
    |>> Well a user asked me why it crashed on a transparent command.
    |>>
    |>> try this:
    |>>
    |>> (grread NIL 14 2)
    |>>
    |>> note that if you pick a toolbar button, like the zoom out one, it gives
    |>back something like:
    |>> (11 3402)
    |>>
    |>> So how would I allow the transparent command to run within a lisp?
    |>> There is no way to detect what the toolbar button command was so I cannot
    |>mimic it in my routine.
    |>> I usually put this kind of stuff in a while loop and keep looping if I
    |>dont get what I want.
    |>> When I tried that, it simply ignored the zoom toolbar pick and the grread
    |>continued.
    |>>
    |>> So it doesnt crash on a toolbar pick, but the button does not run, the
    |>user has to zoom or pan with the mouse wheel.
    |>> thx
    |>>
    |>>
    |>> James Maeding
    |>> Civil Engineer/Programmer
    |>

    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, Feb 4, 2004
    #3
  4. James Maeding

    John Uhden Guest

    James:

    You can look back a while where I had tried a GRPick routine that would (er, was
    supposed to) properly interpret menu picks within a (grread) loop. Never
    reached 100% satisfaction; then again I probably could have figured it out, but
    somehow work always gets in the way. :/

    Meanwhile, why not just set up the PC's with wheelmice and MBUTTONPAN and let
    'em roll while your program constantly checks out (getvar "viewsize") and
    (getvar "viewctr")?

    BTW, did you solve that list interpretation problem?




    has to zoom or pan with the mouse wheel.
     
    John Uhden, Feb 4, 2004
    #4
  5. Right, I telling users to use the mouse currently. Its amazing to me that users actually admit they pick buttons to
    zoom around. I have told them a million times to use key-ins or the mouse. So for once, I have forced it my way!
    not too bad...

    "John Uhden" <>
    |>James:
    |>
    |>You can look back a while where I had tried a GRPick routine that would (er, was
    |>supposed to) properly interpret menu picks within a (grread) loop. Never
    |>reached 100% satisfaction; then again I probably could have figured it out, but
    |>somehow work always gets in the way. :/
    |>
    |>Meanwhile, why not just set up the PC's with wheelmice and MBUTTONPAN and let
    |>'em roll while your program constantly checks out (getvar "viewsize") and
    |>(getvar "viewctr")?
    |>
    |>BTW, did you solve that list interpretation problem?

    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, Feb 6, 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.