autodesk-data-management

How to upload file to storage location in Autodesk Forge using 3-legged Token?

跟風遠走 提交于 2020-01-07 04:10:11
问题 I have genereted accessToken by 3-legged Token, bucketKey and objectName by Create a Storage Location API as shown in this tutorial(step 4). I want to upload file to storage location.My request returns 'OK 200' status, but it not upload file to A360, as I need. Where is the mistake? How to correctly upload file to user's storage location using 3-legged Token? [HttpGet] public JObject UploadFile(string accessToken,string bucketKey,string objectName,string filePath) { var url = String.Format(

GET users endpoint returns 1003: Client id has no access to the account

一个人想着一个人 提交于 2019-12-24 20:55:50
问题 I am trying to hit the GET users endpoint on the BIM 360 API using this guide. I have a Forge integration set on my BIM 360 Account Admin page, which includes Account Administration privileges. I followed the directions on the docs to remove the "b." from my hub id to get the account id, but when I hit the enpoint it returns "1003: Client has no access to the account" 回答1: This endpoint request a 2 legged access token with account:read scope and a Forge App that was previously provisioned

Support for document sets in Data Management API

ぐ巨炮叔叔 提交于 2019-12-13 04:34:15
问题 Is there any developer support for the new "Document Sets" option in BIM 360 Docs - Document Management? I'd like to organize specific versions of documents into “Sets” in an app that integrates with Forge. If there isn't, when do you plan to make this possible? Thank you! 回答1: Unfortunate this is not yet supported, we're looking into it as a future improvement. 来源: https://stackoverflow.com/questions/52054690/support-for-document-sets-in-data-management-api

Download BIM360 Docs file using Javascript

核能气质少年 提交于 2019-12-11 18:22:36
问题 I am trying to download BIM360 docs files using javascript. I am able to get file response from BIM360 but unable to save file with proper content. Here is my JS code - $(document).ready(function () { var anchor = $('.vcard-hyperlink'); $.ajax({ url: <file downloaded URL>, type: "GET", headers: { "Authorization": "Bearer " + <accessToken> }, beforeSend: function (jqxhr) { }, success: function (data) { // create a blob url representing the data var blob = new Blob([data]); var url = window.URL

Modify Properties of a Model Autodesk-Forge

余生长醉 提交于 2019-12-11 08:05:33
问题 I am working on an app to upload a model, then retrieve and allow user to modify its properties via Excel/CSV/JSON. I see here that models are read only and that PATCH is not intended to allow direct modification of model object properties, but is more focused on documents. Is this understanding correct? If so, can Forge host JSON? The current plan is to export the data, modify in excel, upload/convert into JSON, store it (somewhere) and then display in Forge the properties from the JSON data

Deleting a file from bucket. Autodesk-forge

懵懂的女人 提交于 2019-12-11 06:37:10
问题 There are problem with deleting a file from wip.dm.prod bucket ("errorCode": "AUTH-012"). But I can download current file by using -x GET instead of -x DELETE. I use this tutorial -> https://developer.autodesk.com/en/docs/data/v2/reference/http/buckets-:bucketKey-objects-:objectName-DELETE/ . Attach an example below. Request curl -v https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/de34f4c9-457c-4653-a9e4-8bbad12bf5ec.rvt -X DELETE -H "Authorization:Bearer

Creating a viewer application with an URN from Autodesk A360

对着背影说爱祢 提交于 2019-12-01 00:56:02
I have created a viewer application which uses 2-legged authentication and displays the project that has been uploaded to my own bucket. Now instead of viewing the project in my own bucket, I would like to be able to view a project that has been already uploaded to Autodesk A360. For that I have completed the following steps: Implemented the 3-legged authentication (A360 account with the project and the account that is being authenticated are the same). Accessed the hub, project and the file, as described in https://developer.autodesk.com/en/docs/data/v2/tutorials/download-file/ . Instead of

Creating a viewer application with an URN from Autodesk A360

泪湿孤枕 提交于 2019-11-30 19:12:58
问题 I have created a viewer application which uses 2-legged authentication and displays the project that has been uploaded to my own bucket. Now instead of viewing the project in my own bucket, I would like to be able to view a project that has been already uploaded to Autodesk A360. For that I have completed the following steps: Implemented the 3-legged authentication (A360 account with the project and the account that is being authenticated are the same). Accessed the hub, project and the file,