DisplayPen patterned curve

Hi there,

DisplayPen class has three properties for patterns but I’m not able to make it work on DrawCurve.

I’ve created this test on GH to play with different values but no different result.

PatternedDisplayPenBug.gh (15.1 KB)

Using RH8 SR2 (8.2.23346.13001, 2023-12-12).

Some help here please?

@steve is this something you can help with?

I guess you were pinning to @stevebaer :slight_smile:

1 Like

The pen needs an actual pattern to draw. Add the following to line 68 in your script

pen.SetPattern(new float[]{0.5f,0.5f});

wow what I missed, thank you!