- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
(Not an Autodesk Employee)