From the course: Revit: Creating C# Plugins

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding icons

Adding icons

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Adding icons

- [Instructor] With our own ribbon tab in the Revit user interface, we can add as many commands as we like and customize them in different ways. One such way is by adding our own icons to the commands to make them a little bit easier to identify. So in this video, let's have a look at adding an icon to the command that we just added to our new tab. To start, we'll need an image to use as our button image. The ideal size for button images in the UI is 32 by 32 pixels. However, some smaller controllers, such as drop downs are ideally 16 by 16. As you can see in the exercise folder for this video, I've gone ahead and saved a 32 by 32 sized .PNG file named desk. If you want to do this with another image, try creating it as a bigger format, say 200 by 200 pixels in vector software, such as Illustrator, and then scaling it down. In the external application where we created our tab and button, let's add the code in here to add the image to the button. To do that, we first need access to the…

Contents