Is it possible to convert/translate/export RVT into SVF to get multiple 3D views by using autodesk forge C# library or rest API? By default I am getting only {3D} file after translation/export.
It's related to your Revit file configurations, please follow the instruction of Publishing Settings from Revit for BIM 360 to choose the views you want to show in Forge, and make sure the view set is checked in the dialog.
Related
Looking up online I only found a way to export a Revit file to IFC using the settings inside the Revit File already.
Is there a way to export an ifc file from a Revit model using a specific settings (not the settings inside the Revit model)?
(For example, exporting to IFC4 with 1st level boundaries)
Inside a Revit file there is an option to export settings and then load them.
Is there a way to use this settings file automatically on a different Revit file that does not contain this settings?
I assume the export you refer to is built in to the Forge translation system, cf. Supported Translation Formats.
In that case, I do not believe that you can modify the standard settings.
However, you could achieve what you want using the Forge Design Automation API for Revit instead.
In that case, you could implement a .NET Revit add-in that applies the required settings and launches the export.
That add-in can then be re-packaged for use in the Design Automation API framework, for real-time online web access.
Here is an example add-in IfcSpaceZoneBoundaries that I created to retrieve IFC spaces and zones and their boundaries.
For more info, please refer to Design Automation API for Revit or DA4R.
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.
Using Autodesk Forge Viewer
I want to generate one viewer file from two IFC files with the Forge API.Can I do that with the Model Derivative API?
You can translate “composed” files (e.g., assembly and part files in Inventor, or XREFs in AutoCAD): https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-composite-source-file-to-stl.
Alternatively, you could translate your IFC files separately and load them both into the viewer: https://forge.autodesk.com/blog/supporting-multiple-models-new-modelstructurepanel.
For a proof of concept I'm playing around in Postman with the Autodesk Forge API's and I'm doign the following.
authenticate
create & get bucket
upload model (in IFC and Revit) in bucket
translate it
extract meta-data.
With IFC files everything is working like a charm but it's not working with Revit files no matter what I do or which Revit file I try.
I tried 3 of my own Revit files (that do work in Autodesk 360 viewer based on Forge) and Autodesk's sample Revit file Basic Sample Project 2016
I'm wondering if it could be something specific in my API calls that I'm missing.
Below are two screenshots of two calls that I'm doing;
put model in bucket
validate translation giving error with Revit but working with IFC
Hope you can help, because I'm very stuck.