Connecting to SQL Server database with RevitAPI

1.4k Views Asked by At

I'm trying to export Revit data to an external database. What I'm looking for is to use RevitAPI to do the job of exporting. Though if there is a way to do so using Revit's own tools it'll be fine. 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.

I'm also aware of Revit DB Link. It is for subscribed users only so that's not an option here.

1

There are 1 best solutions below

5
On

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. For the actual connection to the external SQL database, you will have to use some additional library. For that, I would suggest searching the Internet for something like sql server .net api.