autodesk-forge

Building Autodesk Forge RCDB on Windows 10 fails with node-gyp errors

一笑奈何 提交于 2019-12-20 05:01:54
问题 While attempting to get the Forge Responsive Connected Database to build. I am unable to build this application on my Windows 10 machine. I am unable to succesffuly run “npm install”. I get the following errors as listed below. I ended up trying to use a pre-configured “canvas” and it still didn’t let the node app run. https://github.com/Autodesk-Forge/forge-rcdb.nodejs I have tried these solutions to no success: https://github.com/npm/npm/issues/14543 https://github.com/nodejs/node-gyp#on

3D Boolean operations with Three CSG

半腔热情 提交于 2019-12-18 18:31:16
问题 Following the example here: http://learningthreejs.com/blog/2011/12/10/constructive-solid-geometry-with-csg-js/ And using Three.js with https://github.com/chandlerprall/ThreeCSG, I'm trying to do 3D boolean operations on nodes from the model. Like for example if I have a wall with a window, I want to do invert() on that to get just the window. I have a function that returns all the vertices of the polygons of a node, here's an example of vertices of an object without holes https://pastebin

Is it possible to export 3d Views from Revit model with Design Automation API?

一个人想着一个人 提交于 2019-12-14 03:07:50
问题 I need to create an application, that exports all 3d views of the Revit model to separate rvt file for each model.Is it possible to do with Design Automation API? 回答1: Yes, absolutely. Say the original model is named A with 3D views V1, V2, ... Vn. Open A. Delete all views except V1. Save as A1. Close A1. Open A. Delete all views except V2. Save as A2. And so on. That can be done in DA4R. 来源: https://stackoverflow.com/questions/57570909/is-it-possible-to-export-3d-views-from-revit-model-with

Autodesk Forge Model Derivative API: OBJ files

筅森魡賤 提交于 2019-12-13 21:41:56
问题 Using Autodesk FORGE Model Derivative API to query geometry attributes from REVIT files results in very large OBJ files; e.g. a 30-40MBs REVIT file transforms to a 1GBs OBJ file. Is there any documentation on generating optimized OBJ files via FORGE Model Derivative API? Are there other alternatives to downloading optimized geometry attributes? FORGE VIEWER seems to take SVF fileformat as input. Is SVF a recommended file format for custom made webGL viewers and is there any documentation

Autodesk Forge - download a file using curl

筅森魡賤 提交于 2019-12-13 20:08:38
问题 I am working on a project to convert .sldprt to .obj file through a python script. I am following this tutorial. In the last part, I have to download the translated file to my local machine. The command-line command to download the file is as follows (STEP 5) sudo curl -X "GET" -H "Authorization: Bearer $TOKEN" -v "https://developer.api.autodesk.com/modelderivative/v2/designdata/$SURN/manifest/$OURN" -o $OUTFILE where $TOKEN is the access token, $SURN is the uploaded file URN and the OURN is

Issue with getManifest (forge-php-client)

醉酒当歌 提交于 2019-12-13 10:25:18
问题 It seems there is an issue with the DerivativesApi.getManifest method or with the ManifestChildren.setRole method. When I call "$apiInstance->getManifest", I get the following error message: "Exception when calling DerivativesApi->getManifest: Invalid value for 'role', must be one of '2d', '3d', 'graphics', 'manifest', 'thumbnail'" Here's the Stacktrace: 1 *\ObjectSerializer.php(236): Autodesk\Forge\Client\ObjectSerializer::deserialize(Object(stdClass), '\\Autodesk\\Forge...', NULL) 2 *

how I can see view points in Autodeskforge

帅比萌擦擦* 提交于 2019-12-13 07:43:24
问题 We have been working on the web based application using AudeskForge , where we are uploading the file ( .rvt,.NWD ) files but we can track the ViewPoint in it. On other hand we can see the ViewPoint when we open files in respective applications (Revit, Navizwork). We have been using audesk-model-derivatives to get the data. I would like to how I can see view points in forge? PS:So idea is to get possibly all data and datapoints from the stand-alone software to webbased forge app. 回答1: Update:

ZoomWindow extension breaks without GUI?

两盒软妹~` 提交于 2019-12-13 07:24:22
问题 Using v2.13 of the viewer, the ZoomWindow extension relies on having the default GUI enabled. Is there a way around this? The load method is: proto.load = function() { var viewer = this.viewer; var toolbar = viewer.getToolbar(true); //var toolbar = viewer.getToolbar ? viewer.getToolbar(true) : undefined; // Init & Register tool this.tool = new namespace.ZoomWindowTool(viewer); viewer.toolController.registerTool(this.tool); // Add the ui to the viewer. this.createUI(toolbar); return true; };

How to add custom menu to Autodesk Forge Viewer?

走远了吗. 提交于 2019-12-13 05:16:19
问题 Helo I'm using Viewer Example form here: https://forge.autodesk.com/en/docs/viewer/v5/tutorials/basic-viewer/ (Step 1) and now I need: 1. add custom menu on right click 2. get info's for clicked object, like Area, Volume, Length (if 3D) or length if 2D. How to do that, please? I try to copy whole "class MyContextMenu extends ... " code from https://forge.autodesk.com/blog/customize-viewer-context-menu but it does not worked. Thank you. 回答1: Here's a simple example of adding custom menu items

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