Results 1 to 3 of 3

Thread: Highlighting and Alert Boxes

  1. #1
    100 Club lance.81922's Avatar
    Join Date
    2005-01
    Location
    Santa Fe, NM
    Posts
    176
    Login to Give a bone
    0

    Default Highlighting and Alert Boxes

    Howdy all -- This seems so annoying, yet it's quite reproducible. I select an object, use (redraw obj 3) to highlight it, pop an alert box, then use (redraw obj 4) to un-highlight.

    The problem is that unless I "jiggle" the alert box, the object won't highlight!

    Try this:

    (defun rdtest (/ obj)
    (setq obj (car (entsel)))
    (redraw obj 3)
    (alert "Kick me")
    (redraw obj 4)
    (princ)
    )

    On my system, at least, the highlight will NOT happen unless I move the alert box. I thought it might be related to hardware acceleration, but that had no effect. Is there any was to force the highlight before the alert box pops up?

    Thanks

  2. #2
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: Highlighting and Alert Boxes

    This should work!

    (defun rdtest (/ obj)
    (setq obj (car (entsel)))
    (redraw obj 3)
    (command "delay" "100")
    (alert "Kick me")
    (redraw obj 4)
    (princ)
    )

  3. #3
    100 Club lance.81922's Avatar
    Join Date
    2005-01
    Location
    Santa Fe, NM
    Posts
    176
    Login to Give a bone
    0

    Default Re: Highlighting and Alert Boxes

    Thanks! I never realized that such a delay would affect highlighting this way. It totally solved the problem! Thanks again.

Similar Threads

  1. Polygonal scope boxes or 4 point scope boxes with angles unequal 90 degrees
    By Wish List System in forum Revit Structure - Wish List
    Replies: 1
    Last Post: 2013-04-10, 01:19 AM
  2. alert box
    By samtom123 in forum AutoLISP
    Replies: 5
    Last Post: 2009-11-19, 12:22 PM
  3. need help w/Alert box
    By rick.rivera in forum AutoLISP
    Replies: 2
    Last Post: 2005-06-27, 12:00 PM
  4. AutoCAD alert boxes.
    By peter.woodcock in forum AutoCAD General
    Replies: 2
    Last Post: 2004-11-11, 05:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •