Questions about Autodesk Forge Viewer API - autodesk-forge

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.

Related

Forge viewer - Download pdf derivative via API

Can I download a pdf from a derivative via API?
It's not clear to me what exactly you're asking for. Below are a couple of answers to what I think your question could be:
You have uploaded a PDF file to the Model Derivative service, and you would like to download the results of the conversion?
While you can download the derivatives of 3D models, I'm afraid it is not possible for PDFs. When processing PDFs, the Model Derivative service converts them to image pyramids to enable Google Maps-like experience where zooming in on different parts of the PDF will load in higher resolution images of the area.
However, if your goal is to be able to load a PDF into the viewer without the Model Derivative service, note that this is also possible: https://aps.autodesk.com/blog/dwf-and-pdf-support-forge-viewer
You have uploaded a design (e.g., a Revit design) to the Model Derivative service, and you would like to download the PDF output that the service generated?
If you're interested in converting Revit designs to PDFs, I would suggest that you generate the PDFs using the Design Automation for Revit as this service is better suited for these types of tasks.

How to Export Multiple 3D Views

My Revit project contains multiple 3D views.
By default only the {3D} View will be translated. I would like to know how to choose which 3d view to upload.
I found this post where a solution to the problem is described. Export Multiple 3D Views
The plugin is no longer available, but this function will surely still exist.
When I upload the Revit project to BIM 360, I only get a small part of the created 3D views displayed.
I only want to visualize a small part of the project in AR.
My current solution is to display the part in the {3D} view via section box, save the project, upload it and then prepare it for Unity with the AR/VR toolkit.
Started Revit 2017, it got renamed as Publish Settings, please check this page: https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2017/ENU/Revit-CAR/files/GUID-09FBF9E2-6ECF-447D-8FA8-12AB16495BC3-htm.html
Please select views you want to see in Forge Viewer in view sets of the Publish Settings before uploading to Forge for translation. Afterward, save the modified RVT to your hard disk, then upload it to Forge OSS.

Mass models from FormIt do not render in Autodesk Viewer

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.

Embed the Autodesk Viewer in a web page

In our web application, we want to view AutoCAD files using Autodesk viewer API.
As per our requirement we want to select the file and need to open directly in auto-desk viewer site, where all default options like 2D, 3D views are available.
Is it possible to view those files, directly in Autodesk viewer, instead of creating our own viewer?
We do have a minified online viewer that takes a svf - pls make sure all svf assets are available at the same location and open to public access with CORs allowed:
https://autodeskviewer.com/viewers/latest/viewer3d.html?svf=url/to/your/svf (make sure to put in the url to your svf)
But this is NOT an official setup of any sort and is subject to change w/o notice. You are very much encouraged to develop your own, just a few lines of code would do this trick if you already have your models extracted.
Here's a few good places to start:
https://forge.autodesk.com/en/docs/viewer/v6/tutorials/basic-viewer/
http://learnforge.autodesk.io
Tools:
http://models.autodesk.io
https://extract.autodesk.io/

How to have forge viewer to display elements with low level details?

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.