Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
there is a possibility to call Revit(2019) color dialog box?
Thank you
Solved! Go to Solution.
Hello,
there is a possibility to call Revit(2019) color dialog box?
Thank you
Solved! Go to Solution.
You can check out the dynamo package named RHYTHM and its UI.ColorPicker.
It is a custom created dynamo node and you should be able to inspect it and learn the source code.
I hope this helps,
Recep.
The Revit Revit one is not exposed, as far as I know.
What I've done in the past (and, alas, I couldn't find my code to help you out further) is use Widnows Forms Color Picker and modify it for my needs.
The thing to watch out for is the conversion between Windows Color object and Revit Color object. You will need to get the RGB values from the Color Picker and turn the into Revit colors. For more information refer to this thread for example.
I hope that helps.
I think the ColorSelectionDialog API is what you desire.
No waaay! This is so good!
That should be the answer.
I think you haven't much experience in C#. Just pass a class instance and use the show method.
ColorSelectionDialog colorSelectionDialog = new ColorSelectionDialog();
colorSelectionDialog.Show();
After that, you can get the selected color via, its selected method.
I hope that helps,
Recep.