Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ribbon Pannel Add In + Highlighting rooms

1 REPLY 1
Reply
Message 1 of 2
mohammadarslan
268 Views, 1 Reply

Ribbon Pannel Add In + Highlighting rooms

Hello, 

 

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 ?

 

 

1 REPLY 1
Message 2 of 2
Joe.Ye
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.

sel.Elements.Add(room);

 

Hope this helps.

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community