ActiveViewport properties do not change on user input

ActiveViewport properties do not change on user input

Anonymous
Not applicable
338 Views
3 Replies
Message 1 of 4

ActiveViewport properties do not change on user input

Anonymous
Not applicable
One can set things like camera position and target using
ThisDrawing.ActiveViewport = "some Viewport object with defined properties".
Works fine.

Now my problem:
when I change the 3d view in autocad using for exaple the orbit icon, these
changes are not reflected in the ThisDrawing.ActiveViewport's properties.
whenever I read values like Direction, they keep the same. Why do these
values not update on user input directly in autocad?
Issuing ThisDrawing.ActiveViewport = ThisDrawing.ActiveViewport resets the
view to the previous state. I tested commands like Regen or Update, but no
effect. Eventually the problem is not the graphical representation on
screen, but the properties of the object.
So how can I keep track of a changed view in my application??

many thanks, Rainer
0 Likes
339 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Thisdrawing.save works
0 Likes
Message 3 of 4

Anonymous
Not applicable
> schrieb im Newsbeitrag news:5087764@discussion.autodesk.com...
> Thisdrawing.save works

thanks for that hint. but shouldn't that be seen as a bug in autocad, not
updating the ActiveViewports properties on user input...
0 Likes
Message 4 of 4

RonnieWilkins
Advocate
Advocate
Not a bug. By design.

Even in ARX or Managed ARX (.NET) you have to manually update a viewport using acedVports2VportsTableRecords. I have this working in VB.NET, never tried in VB not sure if it can call the exported function correctly, though it should.

You can view the thread here:

http://discussion.autodesk.com/thread.jspa?threadID=455076
Ronnie Wilkins, Jr.
0 Likes