Reputation: 467
I have set a specific orientation for my model in Revit, but as it gets loaded in the Forge Viewer is appears that the viewer overrides the coordinates of what I've set in Revit.
Where/how can I edit the "home-screen" for my model in the viewer?
Upvotes: 2
Views: 2051
Reputation: 7080
There are two ways to do this in my experience, one is using Set current view as Home
in the Revit ViewCube, another is using Viewer3D
state API in the Forge Viewer.
In the Revit part, you can do this in this ways:
Set current view as Home
in the Revit ViewCube to save current view as the default view.Publish Settings
to tell the Forge Model Derivative service to translate this for viewing in the Forge Viewer, then click save
button to assign this 3D view as the Web view for the Forge.In Forge Viewer side, you can do this:
viewer.getStatus( { viewport: true } )
to get current camera state (One time only).viewer.restoreState( thisCameraState )
every time.viewer.utilities.autocam.setCurrentViewAsHome()
after the step 3.==== Update ====
If you still have some problem related to this issue, you can consider providing a reproducible case demonstrating that, I will gladly analysis for you. Those following items should be in the reproducible case:
If your reproducible case could not be posted here publicly, please send it to the [email protected]
and remove sensitive data or information before you send.
Hope this help.
Upvotes: 2