A blog dedicated to tidbits of software information related to the AEC industry. Most tips and tricks are roughly 60 seconds because, "Hey who doesn't have 60 seconds".
*The views and opinions expressed in this blog do not reflect those of my employer.

Monday, December 5, 2016

Color Picker in #DynamoBIM using #Revit API

For a long time now I have wanted to look into building a color picker for Dynamo. Primarily because the previous package I utilized, hasn’t been updated for the latest version of Dynamo. This was of course the great UI++ package from the badmonkeys. (This package is awesome by the way. Adam, please update with Konrad’s code ASAP Smile)

After much research and investigation, I stumbled upon this API method in the Revit API.

image

This was a revelation! Finally I can create a color picker without importing a bunch of Python libraries. Even better is, that this supports Revit color output as well.

I can’t wait to see what people use this for, especially with mandrill and dynamo player.

colorPicker

Have fun!

-johnP

2 comments:

  1. Sorry about the length of time on this one...... Nice workaround too btw. UI++ is now updated :D

    ReplyDelete
    Replies
    1. No problem man! Thanks for the reply. UI++ is great! Thought I'd offer another option that's compatible with dynamo player too.

      Delete