Message 1 of 4
ActiveViewport properties do not change on user input

Not applicable
02-15-2006
01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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