I want to translate multiple models using the Forge API. Currently we are able to translate a single model successfully.
Our requirement is to load multiple models in the Forge viewer. For that we need to translate multiple files in the Forge Model Derivative API.
To translate multiple models, is the same as translating a single model in your Forge Bucket storage.
Once you have created the SVFs, grab their URNs and load multiple models into the Forge Viewer using this blog post as your guide:
https://forge.autodesk.com/blog/loading-multiple-models-forge-viewer-v7
The trick is to set this Viewer option...
viewer.loadDocumentNode(doc, viewables,{
keepCurrentModels: true,
...etc
Let me know if that helps
Cheers
Michael
Related
I was trying some hands on with forge services, I want to fetch few object's properties inside of a revit model uploaded on bim360/ACC, for which I am calling two API's 'https://developer.api.autodesk.com/modelderivative/v2/designdata/job' for translating the job to svf and then calling API "https://developer.api.autodesk.com/modelderivative/v2/designdata/" + urn + "/metadata/" (with urn of the translated job) (failed when passed urn of revit file directly)
Can we not directly get the metadata/properties without converting the file to svf? Since translating to svf is taking a lot of time for large files, my motive is to decrease the time to fetch the properties, can you share any solutions if you think of any please?
Yes, you are correct in assuming that you need to translate to SVF in order to access any BIM element properties at all. It's either that, or open it in desktop Revit and access the data there. Also discussed in the Revit API discussion forum thread on fetching metadata of a model using Forge model derivative API.
When using Model Coordination in BIM360, we can reposition a model with the "transform" function.
Is it possible to acces this transform value when loading models in the Forge viewer?
We are using the "AggregatedView" methods to load models.
This data is stored in the view of the specific model set version. you will need to use Model Coordination API to get it.
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/mc-modelset-service-v3-get-model-set-view-version-GET/
This is a snapshot of my test. alignment tells data of transformation
It looks the API document above has not updated with the related information. I am reporting this to engineer team.
If you have not been familiar with Model Coordination API. The tutorial and Postman collection might help:
https://forge.autodesk.com/en/docs/bim360/v1/tutorials/model-coordination/
https://forge.autodesk.com/blog/postman-collections-model-coordination-api
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.
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.