I'm able to successfully batch upload Revit models to BIM360 Documents (and version them, as well). However, my main goal is to be able to batch upload models to BIM360 Design as our day-to-day (pre-published) design models.
It appears that instead of using type items:autodesk.bim360:File that I should be using items:autodesk.bim360:C4RModel. However, I keep getting "The client_id is not whitelisted for schema items:autodesk.bim360:C4RModel." Is there a way to provision my app to access that?
As a user, I have admin rights to BIM360 Docs, so I don't think it's an individual rights issue.
Thanks!
It’s not possible for you to upload “cloud” models with a
Forge app. It can only be done with a Revit Addin today.
Unfortunately, Forge DM API doesn't support enabling C4R model currently. However, you can do that with Revit API with Revit desktop, see here for the details: https://thebuildingcoder.typepad.com/blog/2019/11/initiating-bim360-collaboration-and-linking.html#2
Related
I want to use Autodesk forge for my web application that allows my clients to save their model files and view them online. However, the problem I am facing is that the viewer is not unique for the clients as it runs on a client secret key. So, once I upload any model in the forge viewer, it appears to all the clients who are using it. So, how can I make sure that I only get the viewer that just opens the models that are present in the project of the client? Is there any way by which I won't have to use the access key so that the models do no get saved up alongside the viewer?
You have to implement user authentication and keep their files separate (e.g. separate buckets named ) - or at least know who should have access to what.
Authentication could be based on an Autodesk account as well if you wanted. Anyone can have such a thing for free.
I hope you are keeping the client secret on the server so the clients don't have access to it and only pass to the client an access token with scope viewables:read only - that could not be used e.g. to list the contents of buckets - see e.g. https://learnforge.autodesk.io/#/tutorials/viewmodels
I have created a web application for viewing models using the AutoDesk Forge Viewer, and I want to be able to add this onto a website. I used this tutorial: https://learnforge.autodesk.io/#/tutorials/viewmodels (using node.js for the language option).
The goal is to have the user access the viewer application from the website. I have been using VS code live server for testing. However, when I link the page that has the viewer into my own website, the viewer does not load the buckets or allow for creation of new buckets. It is just stuck on a loading symbol like below:
[Loading screen][1]
Could I please have the following questions answered:
What is the proper way to embed this application onto a website in the manner I have described above?
What part of the code controls where the buckets are loaded in?
Thank You.
[1]: https://i.stack.imgur.com/4Xlfv.png
LearnForge tutorial is an example on how to work with Forge API. As a web app, it depends on how the developer(you) designs the user interface, workflow, and data management.
e.g. you can remove the panel of bucket & object lists ,keeping the viewer only in the UI. while you will need to design how to provide the object id (urn) which will be loaded in the viewer. Normally, you would need to setup your own users management, logging process etc, and set your own user permission. Then the user logs in, the web app lists all files (objects) he has permission to check, and when one file is selected, get the urn and load the model in Forge Viewer.
if the end user of your app is BIM360 users, you could take advantage of BIM360 data management workflow, which follows the same permission specified with BIM360. Then the other tutorial will be a good start.
https://learnforge.autodesk.io/#/tutorials/viewhubmodels
In any case, the workflow and UI are defined by yourself. I hope this explains. If you have any further questions that need a meeting call, please feel free to check the calendar of our team:
https://calendly.com/autodeskforge
I am new to autodesk forge and am tasked with creating a website with it. The website must include a login/authentication system and the forge viewer to allow for customers to view their systems. I have set up the forge app which allows users to view their models with NodeJS and deployed it to heroku. This is the link to the tutorial https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs
I am now trying to link that app/program with a simple login/authentication system but have been unsuccessful. Do I need to use a nodejs authentication system as I have used that for autodesk forge. Also, how would I go about hiding certain models from the viewer based on who is logged in. Any examples where someone used a login system with forge would help a lot, also any tips and any guidance would be very much appreciated as I am very new to web-design.
Cheers!
Update:
Thanks for all your help
I am now using the three legged authorization. I am wondering if it is possible if users can log into a specific autodesk account, where certain models are hidden based on which user is logged in.
I am trying to create a website for our customers where they can log in and view our models that we provide for them. They will only have access to the models through the app. However certain models must be hidden as one customer should only be able to view the models that apply to them, not all in the account. Is something like this possible. Thanks for the help.
Cheers!
The tutorial you have followed uses a simplified, two-legged authentication where your application's users do not have to log in. The application authenticates itself to Forge.
If you'd like to include three-legged authentication where your users would log in with their Autodesk account and access their own data, I'd suggest that you follow the 2nd tutorial on the same site: https://learnforge.autodesk.io/#/tutorials/viewhubmodels. This one explains the 3-legged auth in detail.
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.
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