Hello Everyone,
I want to revisit an issue I first encountered in 2022. Back then, it was impossible to pick colors via palette from Dynamo Player, see screenshot. Has there perhaps been some development in this regard?
Hi,
Alternatively, you can use the Revit API UI.
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *
import Autodesk.Revit.UI as RUI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
import Autodesk.Revit.DB as DB
window = ColorSelectionDialog()
#Allows the window to popup
selected = ColorSelectionDialog.Show(window)
if selected == ItemSelectionDialogResult.Confirmed:
#Gets the selected color
color_rgb = window.SelectedColor
OUT = color_rgb.Red, color_rgb.Green, color_rgb.Blue
else:
raise Exception("Canceled by User")
You are a legend, thanks!
Hello mr @c.poupin it shows me its still unsupported !
I guess you will have better luck create a new topic and show all what you do and so far, as this one here already have a solution, and then we dont need guessing whats happend…and maybe take a look at this post as well…How to get help on the Dynamo forums
Looks like the intent on that script is for it to be a ‘reactive’ execution, where the user hits run in player and then the selection window pops up. So try unmarking it as an input in Dynamo, then run the graph and then see what you get. ![]()
thank you so much!!!