Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: michalCDNJV

Hi @michalCDNJV.  The value of a UserParameter can only be either a number, a String (text), or Boolean (True/False), so you can't actually set its value as a Color directly.  You can have the UserParameter's value be the text representing the name of a color.  When you create a color object in code, you usually specify 3 to 4 aspects of the color (amount of Red, the amount of Green, and the amount of Blue, each as a number between 0 and 255), then optionally the amount of opacity (as a Double), which ranges from zero (0) to 1 (0 = completely translucent & 1 = completely  opaque).  And it won't let you store 3 or 4 numbers all as one current value, unless you put it all as one long string (text).  Can you please explain more about what you are trying to achieve, so maybe we can help you come up with some alternative ideas?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)