Highlight method doesn´t update on Acad 2004

Discussion in 'AutoCAD' started by Jon Bilbao, Feb 21, 2005.

  1. Jon Bilbao

    Jon Bilbao Guest

    I use the following sentence to help users to select between LWPolilines in
    a VBA application

    ent.Highlight true
    ent.update
    msgbox "¿OK?"
    ent.Highlight false
    ent.update

    It was working well on Acad 2000, but now with Acad 2004 we couldn´t see the
    highlight effect.

    It doesn´t give any error, so it could be something configuration... I´m
    looking arround it but I coudn´t find anything.

    Someone could help me?
     
    Jon Bilbao, Feb 21, 2005
    #1
  2. Jon Bilbao

    James Allen Guest

    Hi Jon, try removing the update statement after highlighting.
     
    James Allen, Feb 21, 2005
    #2
  3. Jon Bilbao

    Jon Bilbao Guest

    Ok It´s interesting. It almost works.

    Without .update method it Highlights but after the msgbox. But I need to
    highlight before the msgbox (to help user in selection).

    I´m trying with that code:

    PrevColor = ent.color
    ent.color = PrevColor + 1
    ent.update
    msgbox "¿OK?"
    ent.color = PrevColor
    ent.update

    It isn´t as pretty as the previous code but it works fine.

    Is it a bug of AutoCad ?

    Thank you for your interest James.
     
    Jon Bilbao, Feb 21, 2005
    #3
  4. try replacing the ent.update with Application.update.

    James
     
    James Belshan, Feb 21, 2005
    #4
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.