Rhino 6 grasshopper missing assembly error with color input

error
grasshopper
color
csharp
(Taitam) #1

Hello,
I have a missing assembly error in grasshopper c# component when trying to use Color as input.

  1. Error (CS0246): The type or namespace name ‘Color’ could not be found (are you missing a using directive or an assembly reference?) (line 55)
#2

You need to add this line to the editable using blocks area of your C# component:

using System.Drawing;


Taitam.gh (12.7 KB)

(Taitam) #3

cool, I didn’t it was possible to add reference like this in a c# component. thx

#4

Editable using blocks is only available in Grasshopper for Rhino 6.