The DgnPlatformNet ViewPort class documentation includes this note: To update the view, see IViewManager::UpdateView or IViewManager::UpdateViewDynamic.
But IViewManager is part of the C++ MicroStationAPI, not part of DgnPlatformNet. There isn't a documented ViewManager for .NET.
Unknown said: There is a DgnDisplayNET wrapper API
Thanks! I've referenced Bentley.DgnDisplayNet.dll...
However, the compiler tells me error CS0234: The type or namespace name 'DgnDisplayNET' does not exist in the namespace 'Bentley' (are you missing an assembly reference?)
P.S. Why doesn't ViewPort have an Update() method?
Regards, Jon Summers LA Solutions
Unknown said:The native DgnViewport class does not have an Update() function - why would you expect the managed equivalent to have one?
It's not a matter of expectation but hope. Isn't updating a view rather fundamental to the way MicroStation works?
I might criticise the MicroStationAPI for the same reason. If a ViewPort controls a View, why can't it tell it to Update?
Unknown said: Maybe you should describe why you feel you need to update the viewport
I'm attempting to focus a view on a particular element. Here's where I'm setting the view origin & extent...
viewInfo.SetGeometry(elementCentre, elementDelta, rotation); viewGroup.SetViewInformation(viewInfo, nView); viewGroup.SaveChanges(); viewGroup.SynchViewDisplay(nView, false, true, false);
When I run the code I see no change in the view. If I update the view manually, I see the view focus on the element. My assumption is that I need to update the view after SynchViewDisplay().