autodesk-forge

Forge Viewer - Custom background image

心不动则不痛 提交于 2019-12-11 19:35:35
问题 My understanding is that we can add custom skyboxes to the viewer. As of now I am also aware the feature that changes background color and gradient. However, is it possible to add a custom background image? This would've been really helpful in our scenario. 回答1: As I know, if your models are translated from Inventor, and you had set custom background up before uploading, then you can see the user-defined background shows up in the Forge Viewer. In contrast, your models are from another

API Download File from BIM360 Doc Plans folder

╄→гoц情女王★ 提交于 2019-12-11 19:03:50
问题 I am trying to download file from Autodesk BIM360 Doc (https://docs.b360.autodesk.com) with the Forge API so the files can be then afterward archieved to our local storage. I have managed to download any files from "Project Files" folder using the data management API https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-version_id-GET/, with which i can get the storage id under data.relationships.storage.data.id . however with the same API i cannot get the

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

How to change object names in Forge Viewer?

主宰稳场 提交于 2019-12-11 18:10:47
问题 How can I change the names of objects and parent nodes in Forge Viewer? In version 6.1 and below, there was a blog post that worked: by altering the ModelStructureTreeDelegate class, reloading it as an extension, effectively overriding it. That doesn't work on 6.2 and later (current is 6.3.3), because now that class is not accessible anymore, or otherwise doesn't work. What I found was that, by accessing the InstanceTreeStorage.prototype.processName method, I could change the name of objects

How to access to model three on mobile or tablette?

孤街醉人 提交于 2019-12-11 17:50:34
问题 I'm trying to list some elements of my building by accessing to the Three of my model. It's working very fine on my computer but not on my Ipad or Tablet. I'm using this code : getInstanceTree() { return new Promise(async (resolve, reject) => { try { let viewer = LevelsExtension.viewer; viewer.getObjectTree(function (instanceTree) { return resolve(instanceTree); }, function (errorCode) { return reject(errorCode); }); } catch (ex) { return reject(ex) } }) }; On mobile and Ipad, return reject

Autodesk Forge Extension

狂风中的少年 提交于 2019-12-11 17:37:09
问题 So I am following this tutorial to extend the autodesk forge viewer. I have compelted all of the steps and no button is showing, I assume this is due to an error with the loading. https://forge.autodesk.com/blog/extension-skeleton-toolbar-docking-panel I have also tried this tutorial, with the same issue: http://learnforge.autodesk.io/#/viewer/extensions/selection?id=conclusion My issue is I am not getting an error, the extension just isn't showing... does anyone know why? I'm assuming theres

How to convert viewer coordinates back to CAD coordinates?

笑着哭i 提交于 2019-12-11 17:19:50
问题 I am trying to convert from the viewer (scene) coordinates back to the original CAD coordinates. I have seen people mentioning the global offset, but whenever I try to retrieve this, I get undefined. I assumed this means there is no offset. But when I compare two coordinates one in the viewer and one in CAD, they are definitely not equal. I came across the function NOP_VIEWER.model.getUnitScale() ; however, this number did not seem to mean anything when applying it to the coordinates. That

How to POST or PATCH users role and access_level for BIM360 on Postman

北城以北 提交于 2019-12-11 17:13:10
问题 I have been successful in creating a new Account User from following this tutorial: https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example, and have used the PATCH method to set their status to active on Postman. I would like to set their role and access_level but I am having trouble doing so. I have followed the link below to try and perform this function, but it requires the user to already be a BIM 360 Project Admin for it to work. https://forge.autodesk.com/en

Forge - Revit-UnsupportedFileType

久未见 提交于 2019-12-11 17:05:24
问题 I’m trying to integrate Forge viewer with my sample application and facing some issues. Below are the steps I tried to achieve my goal. Registered an app by creating a new account and generated “client ID” and “secret key” (success). Generate Oauth token for further API calls (success). Create a new bucket storage (success). Upload model to the bucket and create URN for the model (success). Design data for model translation (this is the step where our uploaded model will be translated to SVF)

how to get the urn of the bucket file

别说谁变了你拦得住时间么 提交于 2019-12-11 16:51:08
问题 Please tell me how to get the urn of the bucket file. You can get the urn that is included in the response when uploading to the bucket, but I'd like to obtain the urn of the file already uploaded to the bucket. Is there any way? 回答1: You can use the GET /buckets/:bucketKey/objects endpoint to get a list of all files in your bucket. In the response, each file will have its objectId (for example, urn:adsk.objects:os.object:mybucket/myfile ). Take the objectId and encode it in base64, for