简体   繁体   English

如何使用Design Automation API for Revit创建墙

[英]How to create a wall using Design Automation API for Revit

I am trying to create a wall using Design Automation API for Revit. 我正在尝试使用Design Automation API for Revit创建一个墙。 How can I achieve this. 我怎样才能做到这一点。

I am working on a project which creates walls based on excel file. 我正在开发一个基于excel文件创建墙的项目。 First I convert the excel file to json and pass them as parameter to a Revit template file (.rte file) and the result output is a Revit file (.rvt) with the wall. 首先,我将excel文件转换为json并将它们作为参数传递给Revit模板文件(.rte文件),结果输出是带墙的Revit文件(.rvt)。 This process happens in a loop based on the number of rows in the excel file. 此过程基于excel文件中的行数在循环中发生。

I have achieved this task in the Revit API desktop addins, but I am unable to understand as to how this can be achieved in the Design Automation API for Revit. 我已在Revit API桌面插件中完成此任务,但我无法理解如何在Revit的Design Automation API中实现此功能。

I have followed the steps given in the link https://forge.autodesk.com/en/docs/design-automation/v3/tutorials/revit/step1-convert-addin/ 我已按照链接https://forge.autodesk.com/en/docs/design-automation/v3/tutorials/revit/step1-convert-addin/中给出的步骤进行操作

But I am unable to understand how send the template file (.rte) to the Forge API to output the .rvt file. 但我无法理解如何将模板文件(.rte)发送到Forge API以输出.rvt文件。 Can multiple revit files be returned through the API? 可以通过API返回多个revit文件吗?

Can someone please guide me in the right direction to create a wall 有人可以指导我正确的方向来创建一堵墙

Thanks in advance 提前致谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM