Wednesday, November 11, 2009

Project 2- BIM API and DataBase




1. Creating new rows in Tables exported from a Revit Project to an MS Access Database

This was done by first opening the RDBLink.scproj in VisualC# Express Edition from the RDBLink folder in the Samples folder of Revit SDK 2010. Next the term 'RoomAssociation' was searched to find out the places where code was written for the project.

In the NonCreatableElemenrList.cs tab, the public class for RoomAssociations was found. The BuilInCategory was studied to see what different elements were presently included in it.
Then the same code was copied and posted thrice to add in .OST_Doors, .OST_Windows & .OST_Entourage as shown in the picture below. Then the project was compiled by pressing Build.
Next Project 1 was opened in Revit Architecture and then it was exported into the ODBC Database by using the RDB Link in the Data Exchange tab in RvtSamples under AddIns. Then the Access Database was opened and found to have the additions of doors, windows and entourage in the RoomAssociations table




No comments:

Post a Comment