autodesk-designautomation

How to use user defined font on Forge design automation with AutoCAD Plot API

痴心易碎 提交于 2021-02-05 09:34:26
问题 We are using the Forge Plot API to plot DWGs to PDF/JPG. A customer came up with DWGs that are using a special TTF-Font called ROBBI.TTF. I suppose this font has to be uploaded to the Forge server before it can be used. Is it possible to upload the font once, so that it can be used for all our plot jobs? If not: What is the best way to plot using a custom TTF font? 回答1: Thomas, yes, you can wrap custom fonts in your apppackage bundle under Contents folder and refer the path to SupportPath

Autodesk Forge Design Automation demo issues

故事扮演 提交于 2020-12-15 05:47:11
问题 I am trying to use this web app: https://inventor-config-demo.autodesk.io/ However, when trying to upload an Inventor Assembly (zipped, with .iam in the root and .ipt files in a subfolder called 'components') I get the following error: Internal error Try to repeat your last action and please report the following message: Structure needs cleaning 回答1: Tested your attached dataset and should be uploaded correctly now. 来源: https://stackoverflow.com/questions/65096019/autodesk-forge-design

Autodesk Forge Design Automation demo issues

梦想与她 提交于 2020-12-15 05:46:49
问题 I am trying to use this web app: https://inventor-config-demo.autodesk.io/ However, when trying to upload an Inventor Assembly (zipped, with .iam in the root and .ipt files in a subfolder called 'components') I get the following error: Internal error Try to repeat your last action and please report the following message: Structure needs cleaning 回答1: Tested your attached dataset and should be uploaded correctly now. 来源: https://stackoverflow.com/questions/65096019/autodesk-forge-design

Have the quotas for Forge Design Automation changed?

元气小坏坏 提交于 2020-08-10 20:12:39
问题 In the past, I recall that there were max numbers for input sizes and numbers of inputs, however I can no longer find that info in the documentation. Do these limits still exist? The only mention I can find of them is in the Inventor release notes in the DA documentation: https://forge.autodesk.com/en/docs/design-automation/v3/change_history/inventor_release_notes/ The quotas page linked can't be found. https://forge.autodesk.com/en/docs/design-automation/v3/developers_guide/quotas/ 回答1:

Autodesk Forge: WorkItem failing due to AppPackage Issues

本小妞迷上赌 提交于 2020-08-10 18:53:14
问题 My AppPackage fails to load, and I'm unable to find the exact answer in the documentation or by the error message/code. I tested the bundle by unzipping it into the "C:\Program Files\Autodesk\ApplicationPlugins" on my local machine, and it runs/loads as expected. The AppPackage indicates that it is created successfully, which I'm sure is the most up-to-date version. The addin is a .NET DLL file. Error Report Message [02/15/2019 18:44:48] Starting work item ffbcfc1ca50546fc9a6372424b2cdae1 [02

JSON Files as parameter input using Forge Design Automation

﹥>﹥吖頭↗ 提交于 2020-06-28 05:04:21
问题 Looking at the documentation at the Autodesk Forge site, I noticed I can provide JSON information to a Design Automation Activity. My question is: how would I reference the JSON information in a bundled AutoCAD application. Is there a filename reference in the shown -curl example I'm not seeing or understand? What am I not getting? 回答1: You reference JSON like any other input: by its filename. The server will download your json the same way it downloads DWG/RVT etc. The file will be located

JSON Files as parameter input using Forge Design Automation

我怕爱的太早我们不能终老 提交于 2020-06-28 05:02:07
问题 Looking at the documentation at the Autodesk Forge site, I noticed I can provide JSON information to a Design Automation Activity. My question is: how would I reference the JSON information in a bundled AutoCAD application. Is there a filename reference in the shown -curl example I'm not seeing or understand? What am I not getting? 回答1: You reference JSON like any other input: by its filename. The server will download your json the same way it downloads DWG/RVT etc. The file will be located

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

How can I create an activity for data conversion in Design Automation API?

二次信任 提交于 2019-12-24 19:42:53
问题 I'm prototyping a web service to convert data using Design Automation API in Autodesk Forge. My approach is to invoke an activity that executes a script to import a target data file (such as STEP, IGES format). As an example, I created an activity to convert a STEP file to DWG as follows: { "HostApplication": "", "RequiredEngineVersion": "22.0", "Parameters": { "InputParameters": [{ "Name": "Source", "LocalFileName": "input.stp" }, { "Name": "HostDwg", "LocalFileName": "$(HostDwg)" }],

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