Viewing Revit floor plans (2D views) in the Forge Viewer - autodesk-forge

I am interested in displaying Revit floor plans on the web, using the Forge Viewer.
Accessing the 3D view and sheet views has been straightforward, using Autodesk.Viewing.Document.getSubItemsWithProperties (link). However, I am unable to find any reference to accessing floor plan views (not sheet views) in the documentation.
A similar question was asked here (Autodesk Viewer: Suggestions for 2D view of floor view), but the conclusion is unclear - the original poster only seemed to access sheet views.
My question is: are Revit floor plan views accessible from the Forge Viewer? Or, is it meant to only expose 3D views and sheet views?

Re-reading the previous question that you pointed to, Autodesk Viewer: Suggestions for 2D view of floor view, and its comments more carefully, I have the impression that the Collaboration for Revit tool or C4R add-in mentioned there allows you select addition views to include in the translation, both 2D and 3D:
https://fieldofviewblog.wordpress.com/2016/04/02/selecting-views-to-publish-revit-project-on-a360/
You might also want to check out the possibility of driving this functionality programmatically:
http://thebuildingcoder.typepad.com/blog/2016/07/selecting-views-for-forge-translation.html

Related

Extracting drawings data from models in BIM360 through Forge API

I am looking for a solution to extract drawings information (such as drawing, title, revision etc.) from multiple Revit models accommodated in BIM360.
I assume that Forge API can be helpful on this point, yet I am still trying to figure out where to start from.
In addition, my current team's technical abilities are limited to a good level of Dynamo and Python.
What would be your suggestion in terms of overall workflow?
Yes, the Autodesk Platform Services (formerly Forge) can help with this. For example, you could use the Data Management API to programatically browse through existing designs in BIM360, and the Model Derivative API to access all the information that was extracted from these designs (3D views, 2D sheets, metadata, etc.). This tutorial could be a good starting point: https://forge-tutorials.autodesk.io/tutorials/hubs-browser/.
However, keep in mind that APS is a cloud development platform, meaning that some basic understanding of web/server development is expected.

Can we access the data used by Revit Material Takeoff from forge viewer API?

Can we access the data used by Revit Material Takeoff from forge viewer API?
For example, I have a wall (1 element) that have 2 layers:
And now I want to get the volume for each layer from BIM360 viewer API, in the same way I can in Revit Material takeoff.
Thank you,
Please always remember that the Forge viewer and environment is completely generic and not tailored towards any specific domain or functionality.
In the case of an architectural wall, Forge is mainly interested in displaying the entire wall element and managing the parameters and properties directly associated with that top-level element.
The material takeoff information you are interested in is part of the wall's internal compound structure. Managing and accessing that information is domain specific, architectural and structural, and thus beyond the scope of the Forge viewer.
I rather doubt that that information is accessible in Forge or the BIM360 viewer.
So, it will not be available via the model derivative API either.
However, you can certainly access this data via the Forge Design Automation for Revit API.
The details of such an approach are discussed in a previous thread
on how to get wall structure from Autodesk Forge metadata.

BIM 360 Compare documents

is there any way to revive data about what has been changed between versions (remove and add and modify):
via forge Model Derivative API, now I am able to get all the metadata of any Revit files but in total so I am not sure what elements added or .....
the problem we have a lot of files, and it's really hard to run a test to compare modes for each object
thank you :)
I am not aware of any built-in BIM360 or Forge functionaloity for obtaining that information.
I would suggest that you very clearly define exactly what information you wish to keep track of and determine how that can be obtained from a model, e.g., as you suggest, via the Forge Model Derivative API.
Then, you can create a snapshot of that data yourself and implement the functionality to track changes in it as you wish.
The Buiilding Coder discusses and shows how to solve the exact same task for Revit BIMs using the Revit API on the Windows desktop:
Tracking Element Modification
Implementing the TrackChangesCloud External Event
Those articles provide ideas and guidelines on some aspects to take into consideration addressing the same task in Forge.

Autodesk Viewer problem and missing elements from translation to SVF

I've been trying to encourage some of our less Revit-savvy building services engineers to utilise the Autodesk Viewer product. Unfortunately though, I have encountered a couple of problems, one of which I think I have solved and one which I am guessing is more to do with the Autodesk Viewer Applications programmed interaction with the model derivative API.
Initially I uploaded our services model with supporting architectural and structural models but the phase the solitary 3D view created in the viewer was "Existing" with a filter of "Show All". I managed to get around this by creating a 3D view in each model just called "3D" and setting the phase and filter as I like. Happy days.
Could this also have been better solved by setting generateMasterViews to true during the POST job on a custom Forge viewer app?
However, I am only getting some elements from the services model come through into the Autodesk Viewer application. Most notably it's missing ducts, sanitary pipework, cable trays, radiators. In the "3D" 3D view I have created everything is phased correctly, no issues from worksets, visibility graphics, view discipline is coordination (doesnt work to change to mechanical) and everything looks hunky dory in Revit. In the viewer though it's a different story. Even if I upload the services model on it's own. Strangely, in the 2d sheet views all the equipment and infrastructure is there fine, just in 3D it is now.
So my knowledge of Javascript and the Forge API is quite rudimental but I'm guessing the problem is with Autodesk Viewer's implementation of the model derivative API for when the model is translated to svf.
Does this sound correct?
Could it a bug within Autodesk's viewer app? I'm not too sure what the best Autodesk forum to post in would be.
Could it be a bug within the model derivative API? Or is it a setting that is beyond my knowledge?
I guessing I'm at a place where what I'm really after is a custom Forge viewer application to design in the functionality I am after, in this case control of phasing in the .svf file output and ensuring everything is coming through in the view.
Not the most interesting post by any stretch and if you're still reading now, thanks. But I'm sure I can't be the only one experiencing this problem. While I'd love to share a model to demonstrate whats happening, it's commercially sensitive unfortunately.
If anyone can shed a more technical light on
Cheers,Pete
Hi please make sure those elements are visible in 3D views and those 3D views are chosen in the publish settings of the Revit UI. Otherwise, the Model Derivative API will translate the default 3D view called {3D} only that might not contents proper element visibility configurations.
If this issue still persists after setting this up, please consider providing a none confidential model to forge[DOT]help[AT]autodesk[DOT]com for investigations. Thanks!

How to upload 3D model data to Google Maps/Earth?

I've been looking into contributing 3D data to Google Maps/Earth. I am not entirely clear how to go about doing this (In this instructions they have explained how to go about it but in the link with the form to get started they seem to suggest that only organizations can contribute). To start with, I need to clarify the following:
I am not part of any organization. I have some 3D models of buildings in my city. Do I have to be connected to some organization in order to contribute?
And if the answer to 1 is no, then where do I upload by models?
Here is the official post in the official 3D Modeling for Google Earth & Maps forum: 3D program retired
It is no longer possible for you to submit 3D models for inclusion in Google Earth. To answer your questions: 1. It was possible to submit 3D buildings for anyone. 2. This was done by uploading them to the warehouse and then filling in a form.
The way I read it is that you as an individual contributor can also submit models via the 3D warehouse. (I assume you have less than 100 models).
The steps seem to be pretty straight forward, if you use SketchUp there is a feature in the program to upload to the 3D warehouse, and if you have a KMZ with the model you can upload to the 3D warehouse from the site itself (there is an upload button in the top right of that site).