.NET

.NET

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

Refresh object with Overruled.WorldDraw

232 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 (216 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 (201 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.