Revit API

Posts: 12
Registered: ‎06-29-2012
Message 1 of 2 (161 Views)

Ribbon Pannel Add In + Highlighting rooms

161 Views, 1 Replies
10-02-2012 12:35 AM



I am trying to make a external application using Ribbon Add In in Revit, Can anyone please tell me how to link the buttons of Ribbon Panel with database (sql/ Access) and how to highlight the rooms using their Room Id , using API ?



ADN Support Specialist
Posts: 328
Registered: ‎03-05-2010
Message 2 of 2 (139 Views)

Re: Ribbon Pannel Add In + Highlighting rooms

10-10-2012 02:16 AM in reply to: mohammadarslan


You can write a Revit external command to access the database.  

And bind the external command to your own button in the Ribbon panel.


If  the application to access the database is not related to Revit, you can start that executive application by starting a new process.


I hope you already know how to create a button in Revit Tab.


With regard to highlight a room,  I think the only way is to add the room to the selection. Revit highlight it.


Here is code fragment.


Selection sel = uiDoc.Selection.



Hope this helps.


Joe Ye
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit