Is there any way to find a list of IFC spaces and/or RVT rooms in the Forge viewer? I'm making a building simulation app and I'm looking for a way to allow users to select individual spaces/rooms to run their simulation.
You can see this blog writen by Xiaodong Liang Make shader face for room object of the model
Related
I've been learning Forge API for past few months, but still relatively new to the platform. Please excuse if this is an obvious question.
I have an Autodesk Forge application where I upload a Revit file and extract its meta data into a database. In the metadata, there is a category called 'Function'. It shows if the particular element is Interior or Exterior. If the 'Function' data is missing, is there any possible way to identify an interior and exterior element using the Autodesk forge API? Or programmatically?
In Revit, I use Element.Location node (in Dynamo) and extract XYZ coordinates of walls, windows etc, and run that data through an algorithm which differentiates interior and exterior elements. What is the possible way of identifying interior and exterior walls, windows, stairs etc.
Appreciate any help/guidance.
As I know, only Revit walls have the function parameter, and it's part of element properties (in Revit, we call it parameters). In Forge Viewer, you can get it via call Viewer3D#getProperties.
https://knowledge.autodesk.com/support/revit-lt/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/RevitLT-ArchDes/files/GUID-718C1341-C4FC-40D6-9646-D2E13A861D33-htm.html
Unfortunately, there is no equality of Revit API's Element.Location in Forge Viewer, since all geometries will be translated to meshes during Forge translation. To get mesh location, you may take advantage of the center of the object bounding box: https://stackoverflow.com/a/64769854/7745569
We are showing Autodesk Revit models in Forge Viewer that have 3d views and 2d views. However, only the 3d view is showing in the Forge Viewer and there is no button available for us to navigate to the 2d view.
Do we need to add an extension to enable display of 3d views + 2d sheet views in Forge Viewer?
We need a toggle like what exists in the Fusion Viewer
I found several useful answers to this question of yours searching the Internet
for forge viewer revit 2d sheet.
Two of the answers providing background information and solutions for this are right here on StackOverflow:
Viewing Revit floor plans (2D views) in the Forge Viewer
Autodesk Viewer: Suggestions for 2D view of floor view
The final answer by Mikako Harada to the latter of these two suggests:
If you have access to the RVT model within Revit on the desktop, you can use the user interface to choose the views you wish to include, also discussed by The Building Coder:
Selecting Views to Publish Revit Project on A360
Select Rooms and Views to Publish to the Cloud
Autodesk Viewer doesn't seem to render Mass models that were created in FormIt and converted to RVT. I can only see the level delimiters.
I've tried both https://viewer.autodesk.com/ as well as a basic viewer app I built using the Forge tutorials. This is an important part of a system that I'm trying to put together using a few of the Forge APIs.
If Mass type elements cannot be seen in the Viewer, is there a modification I could do using Design Automation v3 that would make the models visible?
Per Eason's advice I added the 3D view to the view set and that enabled the model to fully render in the Autodesk Viewer. This config option can be found under Collaborate->Publish Settings. All models that I imported from FormIt started off with all their views deselected in the view set.
We are using the Autodesk Forge model derivative and viewer API's for sharing Revit models with our customers.
This works very well for almost all our Revit models. But currently we have 2 Revit models which use the same template, and with those 2 models the Forge viewer does not render these correct. It looks like we get some kind of exploded view, materials are not on the correct place etc (see images).
We assume it has something to do with the Revit template, but we cannot find it. Any suggestions?
Revit
Forge
As a suggestion, on Revit, go to publish settings and confirm the names of the 3D selected to be extracted. On Viewer, ensure you're showing the same view, you can see the name where you load a specific viewable.
I have found a workaround, it looks like the problem was the cars which I was using in the model. These were Revit families where a DWG import was used.
When removing the cars from the model all other materials where rendering fine in the Forge Viewer. I sended the model also to Forge support and hoping for a solution so I can use the cars again.
I have a project, use Forge platform and Google Maps API for javascript.
the requirements is that:
1, Display all Cellular-Sites on the GIS map as markers.
I can achieve this through Google Maps API for Javascript.
2, Display the 3D design model of a Cellular-Site while the markers be clicked.
I can achieve this through the Forge platform.
first create a bucket, then upload the 3D model source file and transform to svf format, finally explorer it through the Viewer library.
3, Dynamicly create the 3D model for Cellular-Sites.
Because of the Cellular-Sites consists of some components, Such as a Tower and a House.
There are some different kinds of House and Tower. We have all the 3D model files of the House and Tower.(such as HouseSmall.rfa, HouseLarge.rfa, TowerLow.rfa, TowerHeigh.rfa)
The configurations of Cellular-Sites are stored in database. the Schema may like this:
[
{SiteId:1, SiteName:"small-house-big-tower", HouseType:"HouseSmall", TowerType:"TowerHigh"},
{SiteId:2, SiteName:"large-house-low-tower", HouseType:"HouseLarge", TowerType:"TowerLow"},
]
the position of House and Tower is fixed.
I'm wondering how to automaticlly create the 3D Models of Cellular-Sites according to the configurations.
Any help will be very appreciate.
Thank you very much.
The Forge translation pipeline does not support RFA, but only RVT. That means you would first need to create a RVT for each element, then get them translated into the Forge Model Derivative before using them. YOu can create a catalog of element URN to be consumed into the Forge Viewer later. The Forge Viewer can load multiple URN at the same time, which then should address your needs.
Now to automatically create the 'URN catalog', you need Revit (RFA -> RVT); I guess you can either use the Revit scripting mechanism or write a Revit plug-in for this. Jeremy Tammik wrote a 'room editor' on his blog which shows how to export a RVT to Forge from a plug-in. I believe this would be a good start.