Autodesk Viewer: Suggestions for 2D view of floor

2020-05-05 17:49发布

问题:

I have a revit file and am able to convert it via the cloud to a svf and view it in the 3D viewer. It works both as conversion of the .rvt file directly and as an export from the navisworks addin exporter.

My question: I want the user of my app to also be able to see the floor 2D view as you can in revit.

I have looked through all the manifest files and do not see a f2d for the floor view.

What do you suggest I use for the 2D view? Note that I will have many drawings to process/view so I would prefer not to have to export a dwg for each view then convert those. I am hoping there is a special setting I can pass to the the converter that will create the 2D views

(Note : I also want to be able to highlight/texture the rooms of this view dynamically. So I will need to be able to access the geometry like you can in the 3D viewer)

回答1:

Afaik all 2D views defined in the Revit project file are automatically translated and included in the Forge output. Have you looked at the LmvNav sample, for instance?

https://calm-inlet-4387.herokuapp.com

It displays both 2D and 3D views.

Note the list of available 2D views in the Secondary View dropdown:

It even links the elements in the two views so that anything selected in one is highlighted in the other:

You could check from where it gets the 2D streams. The source is on GitHub:

https://github.com/JimAwe/LmvNavTest

I think you select whether you want a 2D or a 3D stream when you supply it to the viewer.



回答2:

Adding to Jeremy's, FYI - If you are looking for a way with already published model, this does not help. But still you may want to be aware if case you are not - If you have a revit model, there is a UI tool to choose views you wish to include.

https://fieldofviewblog.wordpress.com/2016/04/02/selecting-views-to-publish-revit-project-on-a360/