.NET

Reply
Active Contributor
pva75
Posts: 48
Registered: ‎07-22-2012
Message 1 of 3 (230 Views)

Refresh object with Overruled.WorldDraw

230 Views, 2 Replies
08-28-2012 11:41 AM

I have object with overruled WorldDraw.

In this method I draw some information about object.

Next I change some properties of this object and have to refresh information.

 

If I call editor.Regen() it works but performance is not good.

Editor.UpdateScreen() is not enouht.

 

Can I update overruled only for one object not for all scheme?

 

Thanks,

Pavel

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 3 (214 Views)

Re: Refresh object with Overruled.WorldDraw

08-28-2012 01:47 PM in reply to: pva75

Take a look at this thread:

http://forums.autodesk.com/t5/NET/Overrule-a-specific-subentity-in-block-and-not-showing-the-Base/td...

this one is might be useful for you

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Active Contributor
pva75
Posts: 48
Registered: ‎07-22-2012
Message 3 of 3 (199 Views)

Re: Refresh object with Overruled.WorldDraw

08-29-2012 12:58 AM in reply to: Hallex

Works as:

 

publicstaticvoid RefreshObject(Entityobj)

{

  if(!obj.Visible)

      return;

 

  if(!obj.IsWriteEnabled)

         obj.UpgradeOpen();

   

     obj.Visible = false;

     obj.Visible = true;

}

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!