Generate one Viewer file from two design files on Autodesk Forge - autodesk-forge

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.

Related

Export Revit file format as Gltf or Svf and view offline in Forge-Viewer

I want to view the revit file offline in Forge viwer. For this, I need to convert the rvt file to svf or gltf file format. I couldn't find any free open source code to export as svf. Although I managed to export it as a gltf file format, I could not view this gltf file in forge-viewer due to some errors that I could not resolve. Can you share the open source code that I can use to export the Revit file as svf or gltf format without any errors?
Unfortunately, The SVF file format is Autodesk's private property designed for the Autodesk Forge platform, so the only way of exporting SVF is via Forge Model Derivative API. There is no such open source tool to generate SVF.
For glTF, it depends on your Gltf file structure. As I know, Forge Viewer doesn't fully support glTF 2.0 specs. See https://forge.autodesk.com/blog/gltf-20-support-forge-viewer
Could you share a non-confidential reproducible glTF file demonstrating the issue to forge (dot) help (at) autodesk (dot) com? We can help pass it to our engineering team for investigation.

| autodesk Forge | Export RVT into multiple 3D views

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.

Unable to retrieve Geo Reference or coordinates in Forge Viewer for 2D DWG files

We have a 2D DWG file that is georeferenced with coordinates and translate the file using forge API.
We load the file on the forge viewer and load Autodesk georeference Extension. (checked on AutoCad 2021 tool as well)
I am trying to retrieve these properties but get
hasgeoreference false,
globaloffset undefined
Because of this, I am unable to use the LMV LAT functions in the georeference Extension.
could someone tell me if I have missed something...?
What application is your georeferenced DWG coming from? The Forge Model Derivative service supports georeference data coming from Revit 2D sheets but I'm not sure about other applications. Also, if you could privately share one of the DWGs with us via forge (dot) help (at) autodesk (dot) com, we'd be happy to pass it on to the engineering team and investigate further on our end.

Why Layer detection isn't possible in Autodesk forge Api for PDF files?

I want to import PDF file in Model derivative API and work with different layers. But it is not detecting layers in PDF models as it does in DWG files. Layer manager option is not visible. What to do?
In cases where the Model Derivative service isn't extracting enough information from your input files, you have a couple of options:
if your input file is a AutoCAD, Revit, Inventor, or 3ds Max file, consider extracting the additional information using the Design Automation service
if your input file is a PDF, consider:
viewing the PDF directly in the viewer (see this blog post for more details)
using a 3rd party library (e.g., pdf.js) to extract the additional info yourself

Embedded DWG in RVT 3D View not Displaying Correctly in Forge Viewer

I've imported a DWG file into the 3D view of a RVT model, and am trying to convert and view it in the Forge Viewer. When I view that 3D view in the Forge Viewer the drawing does not display correctly. See links to screenshots below.
I've looked through the response JSON from Model Derivative and do not see any errors.
The RVT project file and the DWG I am trying to embed are also linked below. I am using the rac_basic_sample_project file, where I exported the site plan view to a DWG, and tried to embed that into the default {3D} view.
3D View in Revit
3D View in Forge
RVT File
DWG File