Good Morning.
Is there a method to create project templates with Forge ? I have seen that there is a GET method but I don't see a POST method. Is it possible ?
thanks so much.
Unfortunately, there is currently no API support for creating a project with a template that is logged as HQ-5023, and creating ACC projects logged as the wishlist item, ACSADMIN-2707. Please stay tuned with us.
Related
Related to this 2-year-old question: BIM 360 Project creation template
Is there still not a way to replicate the Web UI option "Activate Document Management" -> "Apply a project template" that duplicates folder structure and role-based permissions?
Specifically, I'm looking at requests to create a project
POST projects https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-POST/ supplying a template_project_id value
and then activate with
POST users/import v2 https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/
I don't see any other template input in the API documentation besides the first request, and that does not appear to bring folder structure along.
unfortunately, what you found is correct currently, creating a project from a template with folder structure and role permission is not supported with current API, but you can achieve that by yourself as shown in a sample project at https://github.com/Autodesk-Forge/forge-bim360.project.setup.tool.
This is actually a high requested wish HQ-5023 as you can see at https://fieldofviewblog.wordpress.com/2019/06/15/bim-360-acc-api-known-issues-and-wishes/#more-4424 , our engineering is actively working on that, we will update you at our blog if any progress.
Based on reading the documentation, and running some tests, this appears to be unavailable still. I would very much like to be proven incorrect by someone at Autodesk! Thanks.
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.
i am confused on how to use MapMyIndia Api in my angular project can anyone help?
i am using the map api of getting the polygon but how to use it in angular is there any package to install?
You can find a sample for MapmyIndia Angular on their Github account.
mapmyindia-angular-sample-webSDK-REST (Angular)
mapmyindia-pureJS-sample-webSDK-REST (pureJS)
If you face a problem, you can ask follow up questions here. Do feel free to use the issues tracker on GitHub to report any bugs
I have created a project using
https://developer.api.autodesk.com/hq/v1/accounts/:account_id/projects
and activate it.
Is there any option to DELETE the created project?
I have already seen that archiving via Patch is available.
Thank you!
According to the REST API design style, The HTTP method for deleting something will implement via DELETE. Unfortunately, it's not available in BIM360 HQ API currently.
I'm working on making a site that allows login with Github and I'm using Django for this. I've gotten as far as redirecting the user to the github authorization page, and then redirecting the user to another part of my project after successful authorization. My question is then: How do i extract such things as the users username and other values? I imagine that a JSON object is sent to me, but how do I use it and where do I get it? I have never done anything like this before, so it might be obvious but if anyone could help me it would be appreciated. Bear in mind that I'm a newbie in Django.
Github login is just OAuth. There is full documentation on Github's dev site on how to do it manually, but you probably want to use one of the many Python libraries which make the process easier such as python-social-auth or django-allauth.
Check out:
https://developer.github.com/guides/basics-of-authentication/
But there is package with this functionality:
python-social-auth