autodesk-forge

Is it possible with Autodesk Forge?

家住魔仙堡 提交于 2021-01-29 09:02:40
问题 Is it possible with Autodesk Forge? Upload the DWG file and view it on the web. Maybe I can use Forge's viwer API. Is that right? And the web has a button. Can I move the focus to a specific object when I click that button? Using Javascript. (I will assign ID values to objects while working in Autodesk CAD.) Similar to Question 2. Can I change the color of a specific object using JavaScript? I'm not good at English. Please politely understand. Help! 回答1: Upload the DWG file and view it on the

Is it possible to delete or overwrite document in BIM360 Docs using API?

我只是一个虾纸丫 提交于 2021-01-29 07:21:47
问题 When we upload the document in BIM360 docs folder, the document is not overwritten if it exists already. What we want to do is, if a document already exists. then upload code should be overwritten the document. Or delete the existed document and upload a new one. We have not found any API which can delete BIM360 docs. 回答1: To remove items from BIM360 Docs' folder, please call POST projects/:project_id/versions with this body and fresh your web browser if you're opening the folder page that

Webpack and three.js in forge applications

牧云@^-^@ 提交于 2021-01-29 05:46:17
问题 I'm struggling a bit with the new viewer version 7 and the inclusion of three.js. According to https://forge.autodesk.com/blog/webpack-and-threejs-forge-applications it is necessary to define three.js as external. But where exactly do I do that? The viewer is embedded in an Angular environment. 回答1: Don't add THREE as dependency in package.json and use the THREE global loaded by the viewer. If you just need the THREE types: (https://www.npmjs.com/package/@types/forge-viewer) 来源: https:/

Autodesk Forge Data Manager Api rename a Item

巧了我就是萌 提交于 2021-01-28 00:15:06
问题 I'm tried to use this PATCH Api to rename item of "A360". It returns 200 with DisplayName updated, but on myhub.autodesk360.com the item seems rendered with "Name" property of json object "Included". this is the request body : { "jsonApi": { "version": "1.0" }, "data": { "id": "urn:adsk.wipprod:dm.lineage:tMqu2aQEToa3XsRmKzTTRg", "type": "items", "attributes": { "displayName": "new_item", "name" : "new_item" } } this is the response : "data": { "type": "items", "id": "urn:adsk.wipprod:dm

Autodesk Forge: What is the difference between dbId, objectId, and nodeId?

大兔子大兔子 提交于 2021-01-27 19:34:23
问题 What is the difference between dbId, objectId, and nodeId? For example, the first argument of the following functions is the same kind of id or ids? fitToView(objectIds,model) objectIds: array of Ids, or null. getProperties(dbId,onSuccessCallback,onErrorCallback) dbId: ID of the node to return the properties for. select(dbids,selectionType) dbids: You can pass an array of IDs or just a single ID. hideById(nodeId) nodeId: (no description) from Viewer API reference here 回答1: It's actually the

Apply custom appearance to individual model fragments in forge viewer

此生再无相见时 提交于 2021-01-24 20:20:04
问题 In the viewable, the model has three leaf nodes that are named “Solid1” but have a parent name of “Tread”, how do I search by parent name to get the dbId? Following the answer from Default material for model in Forge Viewer I can see that we can set a color. Is it possible to instead apply a texture? Thanks! 回答1: The Viewer has a search() function so you can search for any component based on its properties. You can then go up and down the instance tree to go from Thread to Solid1 or vice

Apply custom appearance to individual model fragments in forge viewer

时光毁灭记忆、已成空白 提交于 2021-01-24 20:15:52
问题 In the viewable, the model has three leaf nodes that are named “Solid1” but have a parent name of “Tread”, how do I search by parent name to get the dbId? Following the answer from Default material for model in Forge Viewer I can see that we can set a color. Is it possible to instead apply a texture? Thanks! 回答1: The Viewer has a search() function so you can search for any component based on its properties. You can then go up and down the instance tree to go from Thread to Solid1 or vice

Get the Camera position and restore it in Forge Viewer for a virtual visit

空扰寡人 提交于 2021-01-07 02:31:04
问题 I'm trying to put the camera correctly on dbId defines. For this, I run in the javascript console this command after put the view like I want : JSON.stringify(v.navigation.getCamera()); But if I make a test and try to load the result directly, I have an error : v.navigation.setCamera(JSON.parse("{\"metadata\":{\"version\":4.3,\"type\":\"Object\",\"generator\":\"Ob....")) Error : camera.up is undefined In other words, how can I save the camera position manually and restore it? EDIT I try to do

Get the Camera position and restore it in Forge Viewer for a virtual visit

自作多情 提交于 2021-01-07 02:29:11
问题 I'm trying to put the camera correctly on dbId defines. For this, I run in the javascript console this command after put the view like I want : JSON.stringify(v.navigation.getCamera()); But if I make a test and try to load the result directly, I have an error : v.navigation.setCamera(JSON.parse("{\"metadata\":{\"version\":4.3,\"type\":\"Object\",\"generator\":\"Ob....")) Error : camera.up is undefined In other words, how can I save the camera position manually and restore it? EDIT I try to do

Incorrect results using Autodesk Forge Viewer Geolocation Extension

可紊 提交于 2021-01-07 01:38:34
问题 This is related to my previous question. I'm posting a new question to try and explain the situation better. I am placing marker objects on a model using data taken from drone surveys. I have access to high accuracy GPS data and also omega/phi/kappa rotation data. I am trying to use the Autodesk.Geolocation extension to convert the lon/lat/alt data to viewer space. All models were originally created in Revit. When I use the Geolocation extension, it seems like the refPointLMV and GlobalOffset