Author Topic: Forcing Redraw with DrawableOverrule  (Read 1695 times)

0 Members and 1 Guest are viewing this topic.

zoltan

  • Guest
Forcing Redraw with DrawableOverrule
« on: September 10, 2012, 10:19:46 AM »
I have a DrawableOverrule acting on an entity to change the way it is being drawn.  I would like to be able to force the entity to redraw and re-evaluate the DrawableOverrule code.  The only way I can find to do this is to call Editor.Regen, but I would like to do this to individual entities instead.  I have tried calling Entity.Draw, but it does not fire the Overrule code.

How do I force a single object to regen?

LE3

  • Guest
Re: Forcing Redraw with DrawableOverrule
« Reply #1 on: September 10, 2012, 10:36:30 AM »
i used this on some of my custom objects:
Code - C++: [Select]
  1. this->recordGraphicsModified();
no idea/or recall now what it is or if it is avail in/from c#.

zoltan

  • Guest
Re: Forcing Redraw with DrawableOverrule
« Reply #2 on: September 10, 2012, 11:01:04 AM »
That seems to work.

Thanks.