Author Topic: Update Model Space with Split Views  (Read 2214 times)

0 Members and 1 Guest are viewing this topic.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Update Model Space with Split Views
« on: April 09, 2015, 02:00:09 PM »
It appears Regen() and UpdateScreen() doesn't seem to apply to split views in model space. Only the current / activated view seems to regen / update.  Anyone know how to get the others to regen / update as well?

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Re: Update Model Space with Split Views
« Reply #1 on: April 09, 2015, 02:34:10 PM »
This is from a post by Tony Tanzillo on the AUtodesk forums back in 2008:
Code - C#: [Select]
  1. Document doc = Application.DocumentManager.MdiActiveDocument;
  2. object oAcadDoc = doc.AcadDocument;
  3. oAcadDoc.GetType().InvokeMember( "Regen", BindingFlags.InvokeMethod, null, oAcadDoc, new object[] { 1 } );
  4.  

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Update Model Space with Split Views
« Reply #2 on: April 09, 2015, 04:05:07 PM »
Thanks!

BlackBox

  • King Gator
  • Posts: 3770
Re: Update Model Space with Split Views
« Reply #3 on: April 09, 2015, 05:35:06 PM »
Is there any incentive to using COM over the new .NET exposed Editor.Command() and Editor.CommandAsync() (version-dependent, I 'spose)?

http://through-the-interface.typepad.com/through_the_interface/2014/03/autocad-2015-calling-commands.html

[Edit] - And this recent thread, by Gile: http://www.theswamp.org/index.php?topic=49124.0



Cheers
"How we think determines what we do, and what we do determines what we get."

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Update Model Space with Split Views
« Reply #4 on: April 09, 2015, 06:52:23 PM »
Only if I was running 2015 :) lol

BlackBox

  • King Gator
  • Posts: 3770
Re: Update Model Space with Split Views
« Reply #5 on: April 09, 2015, 09:02:13 PM »
Only if I was running 2015 :) lol


That's the bit of critical info I was missing (perhaps I overlooked it).

Cheers
"How we think determines what we do, and what we do determines what we get."