Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Update Model Space with Split Views
« previous
next »
Print
Pages: [
1
] |
Go Down
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?
Logged
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]
Document doc
=
Application
.
DocumentManager
.
MdiActiveDocument
;
object
oAcadDoc
=
doc
.
AcadDocument
;
oAcadDoc
.
GetType
(
)
.
InvokeMember
(
"Regen"
, BindingFlags
.
InvokeMethod
,
null
, oAcadDoc,
new
object
[
]
{
1
}
)
;
Logged
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!
Logged
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
Logged
"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
Logged
BlackBox
King Gator
Posts: 3770
Re: Update Model Space with Split Views
«
Reply #5 on:
April 09, 2015, 09:02:13 PM »
Quote from: Alien on April 09, 2015, 06:52:23 PM
Only if I was running 2015
lol
That's the bit of critical info I was missing (perhaps I overlooked it).
Cheers
Logged
"How we think determines what we do, and what we do determines what we get."
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Update Model Space with Split Views