transfer BIM 360 project between hubs - autodesk-forge

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.

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.

Forge Design Automation Revit Workitem Arguments

I'm following the Design Automation API v3 tutorial for Revit.
When doing a workitem post I'm a little unclear about the "rvtFile" and "result" arguments. Can the rvtFile url be in an aws bucket? Also what are the restrictions for the result website? It states that it needs to be a signed url, but can this just be another aws bucket? Or do I need to create a website? (Note: I've never done any web development. Everything I know i learned from this tutorial)
Since Design Automation for Revit runs on cloud (and not your local machine), it needs a way to download your input files. You may put your files on any of the storage service providers (say Amazon S3) and provide direct download links to it. For Design Automation to have access to it, you will either need to make those files be public urls or keep them private and generate a signed url for it. When DA4R runs your workitem, the direct download urls provided in the workitem payload will be called to download your files to the worker machine.
Design Automation also does not store any of your result files. So, you will have to generate a signed url for uploading them to appropriate cloud location(s) (say a location in Amazon S3 bucket).
While Amazon S3 is just an example, there are several other storage providers. I also recommend reading Autodesk Forge's Data management APIs:
https://forge.autodesk.com/api/data-management-cover-page/
EDIT:
Useful links
Tutorials: https://learnforge.autodesk.io/
AU Class: https://www.autodesk.com/autodesk-university/class/Revit-Data-Forge-How-Can-Design-Automation-Revit-API-Help-Me-2018

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

Transfer BIM360 folders from one Hub to another

is it possible to transfer files/folders "Hub A" to "Hub B"? Let's say we use Hub A (and C4R) for prototyping purposes, and every month we have to download this prototypes, which is problematic because either the download does not have a directory structure or BIM 360 just never finishes "compressing your items". After downloading and matching the folder structure, we upload this files again to Hub B every time there is a major update to the prototypes.
There is a way to copy files using BIM 360 UI, but just within the same hub.
I would appreciate some guidance here. I've just done some step by step tutorials to get the viewer on my website, so I do not have much experience.
Thanks,
Xavier
Since you ask this question with “Forge Data Management API” tag, so I assume you want to implement the way to achieve that by API.
With the current Data Management API, there is not an easy API to do that directly, but if you want to transfer files/folders from "Hub A" to "Hub B", you can always check & download all the files/folder from "Hub A", and then upload them to "Hub B". There are many details you may need to handle, for example, when the file you want to upload is already there, you can either create a new version or just override it.
We have some similar samples may help you to understand or get started with if you are interested. For example, https://github.com/Autodesk-Forge/data.management-nodejs-integration.box , this is used to exchange files between "Autodesk Hub" and "Box", you can download and check. Also, https://github.com/Developer-Autodesk/data.management-csharp-a360sync , this sample is used to sync the files from local to your A360 account, it's a C# desktop application and is still working in progress as mentioned in README, but, you can get the idea from sample/code anyway.
Hope it helps.