Local instance of SVF translator - autodesk-forge

Is there a local version of the SVF translation process that I could use locally on my computer without having to send my design to forge platform ?
- a standalone application under Autodesk license
- or a revit module ?
I work on project where people do not want to send their design online but still want to use the local version of the viewer.
thank you.

Autodesk Forge doesn't offer a locally hosted translation service. Unfortunately, that means that if your customer is not willing to even temporarily upload their file to the Autodesk server, then they cannot use the Forge Viewer to view their files.
If your customer is ok to temporarily upload a file, then they can upload the file, translate it, download the resulting SVF, and then delete the original file. This sample on GitHub demonstrates that process - https://github.com/cyrillef/extract.autodesk.io.

You can use 3ds MAX to export your files to SVF

Related

Upload `POST`local Revit files to BIM 360 using forge

I have a small question regarding Upload local Revit files to BIM 360 using forge, instead of open files using Revit and sync with BIM 360. I would like to build Using web interface and upload the files the idea behind that to save time because we have a lot of files... so if every time I want to sync the Revit project it will take a long time. I am not sure if the tutorial does what I am looking for:
https://forge.autodesk.com/en/docs/data/v2/tutorials/publish-model/
note that I am basically using JS and node JS, and the RVT files on the network location. I already followed the tutorial on learning forge and I managed to access BIM360 same at the tutorial, so now to POST the OBJ to OSS in specific folders.
I hope you get my point just to save time as I mentioned earlier instead open Revit project and Sync. I think we can put POST all the files at ones to BIM 360 using my own application or website 
It sounds the other tutorial should be what you are looking for:
https://forge.autodesk.com/en/docs/data/v2/tutorials/upload-file/
It explains how to upload a local file as a resource item to the project such as version item in the folder of BIM 360. Could you check if it helps?
It is also feasible to transfer the file from your cloud server. After getting the file stream, upload it to storage of BIM 360 (similar to step 4 in the above link shows ).
Please let us know if there is any further question.

Prevent Conversion of same Drawing file to svf File again when Forge Viewer is called

We have integrated AutoDesk Forge Viewer. We are sending a request to the Forge API's for conversion (using Model derivative API). After closing the Viewer, If we need to show the same file again, Currently we are posting the dwg file again for conversion to view it.
Instead is there a way so save the svf file in my local system so that I need not call the Forge web service twice for the same file.
According to the pricing, for every simple conversion job, its going to cost 0.2 credits.
Please suggest how I can avoid this same conversion second and n number of times.
Thank you,
Shiva Kumar
Unless the DWG file has changed, you do not need to upload the DWG file again and/or POST a translation again. If you do this, you will effectively consume 0.2cc. Instead, just reference the URN you had received after upload/translation when starting the viewer. The 'bubble' or SVF persists on the backend depending of the storage policy you chose. For example, if you create a transient bucket, the file and bubble will persists for 24h, temporary for 1 month, and persistent forever.
I have found a reference to how to iterate through the bucket and see the files which are present in the bucket.
We can login in the below live demo using the forge credentials.
Live Demo
Source Code
Thanks.

Local language replacement is not complete

I'm new to Forge, and I would like to build a offline 3d viewer with my server, but the language option is not totally functional, like the screenshot below:
Problem screenshot
The language only in cube is same with the browser configuration (Chinese in picture) , others are all default English words.
All the .js/.css file is stored on server, and if I set the option in Autodesk.Viewing.Initializer({language: '***someLanguage***'}). it's only works in the cube, others are still English.
But if I change the main js file source to AutoDesk's CDN below(other js files still on local server) https://developer.api.autodesk.com/derivativeservice/v2/viewers/viewer3D.min.js?v=v3.3 (both of the versions are same within offline and online), the language will completely be replaced by option and works right.
For reproducing the problem, you can export a model from https://extract.autodesk.io/, then run the download files in a local http server.
In china we got bad connection with oversea server, so I would prefer local storage for better UE, are there some get/post requests should be handled on local, and I missed it?
I tried with language: 'zh-Hans' and worked fine, also tried and Chinese (seems fine). Using Viewer v6. As per license you should be using the .js file from Autodesk hosted URL (i.e. CDN):
The Autodesk Forge viewer can only be used to view files generated by Autodesk Forge services. The Autodesk Forge Viewer JavaScript must be delivered from an Autodesk hosted URL.

Autodesk Forge Design Automation API and Vault

I'm trying to figure out the best workflow to generate a PDF from a file in the Vault. I first tried referencing the URL in the address bar when logged into the Thin Client, didn't work.
Is this best workflow to accomplish this:
Download the file from Vault
Upload to cloud storage
Process the file in cloud storage with Forge API
Download resulting PDF
Check PDF in to Vault
Delete file from cloud storage
Before going with Forge (which is supported via Design Automation), I would suggest you reviewing Vault built-in feature to generate PDF, see the following links:
Publishing and Manage PDF Files
New Automated PDF Creation for Document Control
There are plenty of Vault APIs for checking in and out of Vault as well as performing Gets. We currently do not have Vault to Forge APIs, but you can use today the Forge APIs. You will need to build a custom application to perform the communications and file transfer between the two locations.

Autodesk BIM360 upload file in Plans root

in Autodesk BIM360 Plans root folder, only project drawings and models are allowed to upload.
Using the Data Service Forge-API (as described here) instead, we can upload and retrieve all kind of files also in Plans root folder (but these files are hidden on online client).
What is your advice?
Thanks,
Alberto
The UI of the BIM 360 Docs product is design to show you 3D and 2D models that are hosted in the Plans folder. I understand that you can upload through the API, but that is not the right use of the Plans folder.
If you want to upload files and be able to access other kind of formats I will suggest upload them on the Project Files, which will be the right place to host them.