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.
Related
I couldn't find Forge Viewer API demo site and don't know what it looks like. I appreciate it if you have some experience using it and answer questions below.
Can you put markup comments on 3D models easily?
When you update comments, are they automatically saved right after you click some update button?
Can you delete 3D model data easily?
Is it mandatory to upload 3D model data to the Autodesk cloud server when you use the Forge Viewer? I don't want to put design data outside of my service but want to see 3D model on a browser.
You can upload any model and check with Viewer through viewer.autodesk.com
We have a few options for markups on documents. this blog might be helpful. You can also take advantage of sprites and textgeometry for labeling your models
Depending on the method you'll need to implement an algorithm to save, store and load your markups.
The data you see with Viewer is the SVF(2) generated by a translation from a source file. To modify the source file, you'll need to run a Design Automation job.
You need to upload your models to a bucket in order to trigger a translation, generating an SVF(2) that can be rendered with Viewer (refer here).
Formats like gltf, pdf, and dwf can be loaded without the need for translations.
I need to create an application, that exports all 3d views of the Revit model to separate rvt file for each model,and after that convert them to an IFC with Model Derivative API.
Suggestion of that problem is here
But,maybe i can directly export 3d Views to an IFC from Design Automation API?
Yes, absolutely.
Analogously to the previous answer
on exporting 3D Revit views with Design Automation API:
Say the original model is named A with 3D views V1, V2, ... Vn.
Open A.
Delete all views except V1.
Exort to A1.ifc using the Document.Export method taking IFC options
Close A.
Repeat for all the other reeuired views.
Initially, DA4R did not provide full support for IFC export, but I believe that should be possible now.
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.
On revit, in 3D view, I have some plumbing pipes with low/medium level of details, so they are just shown as a wire:
If I want to see them nicely, I move up level of detail and I see a nice pipe:
For some files, I cannot edit the original with Revit before sending to forge for conversion. I would like to know how can we see this pipe in forge viewer, even with low level of details?
For info, forge viewer has the element present in model hierarchy.
Thank you,
If I understand it correctly, you upload a "low details" Revit model (with plumbing pipes visualized as wires) to Forge, and in the Forge Viewer you would like to switch back to "full details"?
I'm afraid that is not possible. When converting the Revit model into a Forge Viewer format, all the original geometry is tessellated into triangle meshes, so there's no way to switch between levels of detail after that.
I have been looking at this, and noticed that if i upload the revit model to forge the pipework comes out as singleline, fittings in high detail.
in a similar way to opening a revit file in navisworks directly without converting to a NWC first.
so you can get around it by uploading a NWC file to forge. This doesn't solve the issue, as id prefer to upload the revit file directly.
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.