Revit API

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

Ribbon Pannel Add In + Highlighting rooms

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

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 ?

 

 

ADN Support Specialist
Posts: 312
Registered: ‎03-05-2010
Message 2 of 2 (134 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.

sel.Elements.Add(room);

 

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

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

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

Twitter

Facebook

Blogs

Youtube