.NET

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

Refresh object with Overruled.WorldDraw

192 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 (176 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 (161 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;

}

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.