Upload `POST`local Revit files to BIM 360 using forge - autodesk-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.

Related

Revit to ifc schedule using autodesk forge

https://github.com/Autodesk-Forge/forge-revit.ifc.scheduler
I want to build same app, I have cloned it on local path.It is not working.Kindly help, or give another solution or give some idea.
I have tried Dynamo revit files stored in Bim 360.It takes too much time to open and close files in batch process.Make research and get Idea about forge .cloned project
https://github.com/Autodesk-Forge/forge-revit.ifc.scheduler
But not working.

How to create an activity for both ZIP and Unzip input

I am trying to run a Revit plugin on Forge Design Automation, the input to the plugin are Revit files from BIM 360 that are accessed using BIM 360 APIs. If the Revit document has links, it's downloaded as a zip file (containing the links), otherwise, it's a single Revit file. How can I define my activity so it can handle both scenarios? More specifically, how should I set:
data['parameters']['rvtFile']['zip']
In my activity?
I don't know if the file is downloaded as a ZIP file or not before it's downloaded.
I don't know if the file is downloaded as a ZIP file or not before it's downloaded.
To determine if your Revit file downloaded from BIM 360 is a zip file, you can use this BIM 360 API. If the response has isCompositeDesign = true, it will download as a zip file with eTransmit package. If not, it will download as a Revit file. To understand why your file may sometimes be downloaded as a zip package see here.
For usage of a zip package as input file in Design Automation, you can follow the instructions for pathInZip in our documentation and/or see answer.
Edit (5/24):
Also see a new blog post on the topic. Refer to the usage of arguments.inputFile.zip and arguments.inputFile.pathInZip in the workitem. This way you can use the same activity and include these argument values when the posting the workitem when your input file is a composite design.

transfer BIM 360 project between hubs

is there an easy way to transfer BIM 360 project between hubs? either manually or via Forge.
what I mean transfer project is everything, not just files.
If I understand correctly, you meant by clone projects from one hub to another hub.
There is not manual or direct API way yet.
For the general configurations (members, activate services, folder permissions etc), the Setup tool might be of help.
https://github.com/Autodesk-Forge/forge-bim360.project.setup.tool
As to transferring files, you may check if the 3rd party app of Forge could be help or not:
https://apps.autodesk.com/BIM360/en/Detail/Index?id=6253626418897534668
or you may have to build a script to transfer. Two samples might be useful:
https://github.com/Autodesk-Forge/bim360appstore-data.management-nodejs-transfer.storage
this sample transfers files between cloud storages (google drive, box etc) with BIM360, you could follow the similar format to read files from BIM360 hub, and take advantage of the code to upload to the other hub folder.
https://github.com/Autodesk-Forge/forge-upgradefiles-revit
this sample is to upgrade Revit model version, while the workflow is to get source model from one folder, and upload the output model to the target folder. you could borrow the workflow to copy model from source hub folder to target hub folder.

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.

Local instance of SVF translator

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