autodesk-forge

Logging in Revit Design Automation add-in

一笑奈何 提交于 2020-06-17 15:52:20
问题 I want to send some diagnostic output to the default report.txt file. In some posts it is shown that exceptions are logged to this report.txt file somehow (automatically or not?). Also, I see in some samples that people do the logging with System.Console.WriteLine() , I've tried this, but still can't see it in the report file. Could you tell me, how to achieve this? I understand there is an option to create another log file and send it back with the result, but I think it would be easier to

Implementing a login system with Auto-desk Forge

六眼飞鱼酱① 提交于 2020-06-01 05:11:29
问题 I am new to autodesk forge and am tasked with creating a website with it. The website must include a login/authentication system and the forge viewer to allow for customers to view their systems. I have set up the forge app which allows users to view their models with NodeJS and deployed it to heroku. This is the link to the tutorial https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs I am now trying to link that app/program with a simple login/authentication system but have

Model Derivative API Post Job - 400 Bad Request “Invalid 'design' parameter”

耗尽温柔 提交于 2020-05-29 06:36:31
问题 I've uploaded a Revit model to my OSS bucket and trying to translate the file to svf, but I'm getting the following: 400 Bad Request {"diagnostic":"Invalid 'design' parameter."} I'm new to the Forge API and not sure where a design parameter is required or where it's referring to, so any guidance would be appreciated. POST https://developer.api.autodesk.com/modelderivative/v2/designdata/job Headers Authorization: Bearer {AccessToken} Content-Type: application/json Body { "input": { "urn": "

Model Derivative API Post Job - 400 Bad Request “Invalid 'design' parameter”

一曲冷凌霜 提交于 2020-05-29 06:36:06
问题 I've uploaded a Revit model to my OSS bucket and trying to translate the file to svf, but I'm getting the following: 400 Bad Request {"diagnostic":"Invalid 'design' parameter."} I'm new to the Forge API and not sure where a design parameter is required or where it's referring to, so any guidance would be appreciated. POST https://developer.api.autodesk.com/modelderivative/v2/designdata/job Headers Authorization: Bearer {AccessToken} Content-Type: application/json Body { "input": { "urn": "

Selection and theming color combination

非 Y 不嫁゛ 提交于 2020-05-14 11:08:46
问题 I set selection color (for example red): viewer.setSelectionColor(new THREE.Color(1, 0, 0)); And at objects with no theming color it is red (roof): But if theming color is set for objects, selection is far away from red (level 2): How to make selection color to override theming color? 回答1: Update: Please try viewer version 6.5 and above. Just got confirmed, this issue has been fixed since then. My apologies for the delay. ====================================== Thank you for feedback and

Forge Viewer loading multiple Revit models with shared coordinates

故事扮演 提交于 2020-04-30 14:12:40
问题 When loading Revit models which are aligned by shared coordinates, the models does not align in Forge Viewer with globallOffset settings. The loadModel with placementTransform option seems to be viable, but the shared coordinates data is not made available until after the model is loaded, via viewer.model.getDocumentNode().getAecModelData().refPointTransformation earliest I have the model data is inside the onLoadModelSuccess which is too late to feed into the load options, and will require

Forge Viewer loading multiple Revit models with shared coordinates

我是研究僧i 提交于 2020-04-30 14:09:28
问题 When loading Revit models which are aligned by shared coordinates, the models does not align in Forge Viewer with globallOffset settings. The loadModel with placementTransform option seems to be viable, but the shared coordinates data is not made available until after the model is loaded, via viewer.model.getDocumentNode().getAecModelData().refPointTransformation earliest I have the model data is inside the onLoadModelSuccess which is too late to feed into the load options, and will require

Upload large files (2GB) to Autodesk Forge Data Management API

你说的曾经没有我的故事 提交于 2020-04-16 03:23:44
问题 I am trying to upload some models to the Autodesk Forge Data Management API. Unfortunately, the models are 1GB+ in size and the API gives a timeout exception: StatusCode: 504, ReasonPhrase: 'GATEWAY_TIMEOUT' Using the following code (C#): var url = $"https://developer.api.autodesk.com/oss/v2/buckets/{bucketKey}/objects/{objectName}"; using (var httpClient = GetAuthorizedHttpClient("data:write")) { httpClient.Timeout = TimeSpan.FromMinutes(120); var request = new HttpRequestMessage(HttpMethod

How to activate Autodesk Forge Snapper?

白昼怎懂夜的黑 提交于 2020-03-26 04:45:11
问题 I'm trying to activate the new Snapper extension implemented since version 7.3 of the viewer. So I load the extension like that : viewer.loadExtension('Autodesk.Snapping') Seems to work. And after, I tried to access described methods like that but I always got this error " getSnapResult is not a function" : viewer.loadExtension('Autodesk.Snapping').then(extension =>{ snapper = extension; }); snapper.getSnapResult(); I'm still using the old extension made by Philippe Leefsma a few years ago :

Can i use docking panel in Autodesk forge for both viewers?

半腔热情 提交于 2020-03-25 22:03:11
问题 Example on Photo I have two viewers to compare models. I created a docking panel for properties, and I want this panel to float in two viewers. Is it possible and who will tell you how to do it? 回答1: There are two options: Option1: Use the ' Autodesk.SplitScreen ' extension, which will render up to 4 regions. You load it like this.. loadExtension('Autodesk.SplitScreen'); This simple extension can set up to four cameras, and render four regions. By default, it's just two (left and right). Here