简体   繁体   English

使用RevitAPI连接到SQL Server数据库

[英]Connecting to SQL Server database with RevitAPI

I'm trying to export Revit data to an external database. 我正在尝试将Revit数据导出到外部数据库。 What I'm looking for is to use RevitAPI to do the job of exporting. 我正在寻找的是使用RevitAPI来完成导出工作。 Though if there is a way to do so using Revit's own tools it'll be fine. 尽管如果有办法使用Revit自己的工具,那就可以了。 As long as I can choose and modify the columns in exported tables. 只要我可以选择和修改导出表中的列。

Does anybody have any suggestions? 有人有什么建议吗?

I've already tried "Revit > Export > ODBC", but this option only exports some default parameters and I can not modify the columns I want in my tables. 我已经尝试过“ Revit>导出> ODBC”,但是此选项仅导出一些默认参数,并且无法修改表中所需的列。

I'm also aware of Revit DB Link. 我也知道Revit DB Link。 It is for subscribed users only so that's not an option here. 它仅适用于已订阅的用户,因此这里不是一个选择。

You can implement an Revit add-in to access the data you require from the Revit database and manipulate that into the form you require for export. 您可以实现Revit加载项,以从Revit数据库访问所需的数据,并将其处理为导出所需的表单。 For the actual connection to the external SQL database, you will have to use some additional library. 对于与外部SQL数据库的实际连接,您将必须使用一些其他库。 For that, I would suggest searching the Internet for something like sql server .net api . 为此,我建议在Internet上搜索sql server .net api之类的东西。

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

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