autodesk-forge

Unable to change element colour in Viewer

大兔子大兔子 提交于 2019-12-13 04:26:33
问题 To test out a PoC, I'm trying to colour a selected element red. To do this I have created a class, as below, but nothing happens to the elements when I select them. I've tried a number of the examples around the web (including some which create a mesh proxy for the render proxy and add an overlay) but nothing works. How do I change the colour for a given element (either dbId or fragId )? I can't find API documentation for most of this in the Forge API, so I'm flying a little blind. /* global

Forge model derivative job failed. What now?

痴心易碎 提交于 2019-12-13 04:08:00
问题 I ran a model derivative job and the status came back: failed. After drilling through the return values, it said that two of the linked dwg files were missing. I added the dwg files, re-zipped and re-uploaded the zip. When I try to run the job, it keeps coming back with the initial failed status. Am I missing something? 回答1: Assuming you have buckets , on the POST Job endpoint, use the x-ads-force header, if you pass true it will translate again the file. 回答2: In hindsight, one could say this

Uploading linked Revit models to Autodesk Forge

纵饮孤独 提交于 2019-12-13 03:45:37
问题 I've been trying to use the Post references (https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-references-POST/) to set up the reference between two files in forge but although I get a message "success" as result when I try it on the forge viewer I still see the files separately even after I translate the models. Has someone been through the same issue? 回答1: Without seeing you code it is hard to tell what is happening. Below I copied my bash script code which

Why is webhook workflow not taken into consideration when creating modelderivative job?

╄→гoц情女王★ 提交于 2019-12-13 03:36:21
问题 When I create a job, with a webhook for completion on https://developer.api.autodesk.com/modelderivative/v2/designdata/job the misc.workflow part is not taken into consideration. This is the POST I use with postman (header only contains Authorization key): { "input": { "urn": "{{Urn}}" }, "output": { "formats": [ { "type": "svf", "views": ["3d", "2d"] }] }, "misc" : { "workflow" : "my-workflow-id" } } In the response, I have nothing related to the workflow, but job is trigerred, coming to an

Is it possible to get the name of saved views of nwd models in Forge?

旧时模样 提交于 2019-12-13 03:32:48
问题 I'm aware that it's possible to get the cameras from saved views in the Navisworks models, but it would be great to get the names as well. When uploading a nwd file to a BIM 360 Document Management project these saved views are shown. Is it possible to do this with the Froge viewer as well? Or is this a Document Manager feaure only? Regards Frode 回答1: The saved views in Navisworks files are fetchable with viewpoint names inside the response of the GET:urn/manifest. Here is an example from the

3ds Max textures/custom materials

南笙酒味 提交于 2019-12-13 03:26:23
问题 I read in the Viewer Release Notes: v4.0.1 that Protein Materials tiling patterns (Revit 2019) are now supported. This is great! However, as a 3ds Max user I am curious whether there's any plans to support bitmap-textures or custom materials coming from 3ds Max? That would really generate new possibilities. 回答1: I am not sure about the older version, but as you can see from the following screenshot on a scene created by one of colleagues: There should not be problems on converting the max

When I am trying to view model in Auto-desk Forge am getting Authentication error

可紊 提交于 2019-12-13 03:25:30
问题 I have translated the 3D model and trying to view model using Autodesk Forge then am getting Token 500 error When I ran code in debug mode I got the error message as Autodesk.Forge.Client.ApiException:'Error Calling Authenticate: Unable to connect to the remote server'" TwoLeggedApi oauthApi = new TwoLeggedApi(); dynamic bearer = await oauthApi.AuthenticateAsync( WebConfigurationManager.AppSettings["FORGE_CLIENT_ID"], WebConfigurationManager.AppSettings["FORGE_CLIENT_SECRET"], "client

When the 2D draw read the saved markup2D, the draw lost color

你说的曾经没有我的故事 提交于 2019-12-13 03:22:14
问题 2018年12月7日13:48:15 I try input in Console: let a = NOP_VIEWER.getState(). and then: NOP_VIEWER.restoreState(a). the result is the same, so i think the question maybe on the getState function. Use 'Autodesk.Viewing.MarkupsCore' extension for 2d draw, read the saved markups data and then draw lost color.I have try more than three draw, but the results were the same. And the draw won't be restored the original shape even exit markup. function loadMarkup() { model_viewer.loadExtension('Autodesk

Forge Viewer fails to display edges

此生再无相见时 提交于 2019-12-13 03:16:32
问题 I used https://github.com/Autodesk-Forge/viewer-react-express-headless as a starting point for my Forge React application and I modified viewer = new Autodesk.Viewing.Viewer3D(viewerElement, {}); to viewer = new Autodesk.Viewing.Private.GuiViewer3D(viewerElement, {}); to change it back from a headless to a classic viewer. I can load my model but it appears without edges and when I go to Settings -> Performance -> Display edges it is off by default, and when I try to set it back the edges stay

Ambien shadows affected by scaling in 3ds Max

ぃ、小莉子 提交于 2019-12-13 03:04:50
问题 We're having some problems displaying ambient shadows with original scaling in 3ds Max. This is a screenshot of a model with correct/original scaling (measure tool measures a 14m wall): This is a screenshot of a model that we have scaled down to around 5% of its original scaling (measure tool measures a 0.7m wall): We have the same viewer setting on both uploads, but as you can see, the ambient shadows only starts displaying when we scale our models down. This relates to all the 3ds Max