RhinoCommon Custom ConstructionPlane

Hi there,

I am trying to establish a ConstructionPlane.
Yet e.g. the axes are not properly working.
What am I doing wrong here?

This is the code:

        ConstructionPlane cPlane = new ConstructionPlane();            
        cPlane.Plane = plane;
        cPlane.ShowGrid = true;
        cPlane.ShowAxes = true;
        cPlane.ShowZAxis = true;
       
        cPlane.ThinLineColor = System.Drawing.Color.Yellow;
        cPlane.ThickLineColor = System.Drawing.Color.PaleTurquoise;
        cPlane.GridXColor = System.Drawing.Color.Blue;
        cPlane.GridYColor = System.Drawing.Color.Pink;
        cPlane.GridZColor = System.Drawing.Color.Black;
        cPlane.GridLineCount = 100;
        cPlane.GridSpacing = 40;
        cPlane.ThickLineFrequency = 5;

        foreach (var viewport in Rhino.RhinoDoc.ActiveDoc.Views)
        {
            viewport.ActiveViewport.SetConstructionPlane(cPlane);               
            viewport.Redraw();
        }

This is the output:

Thanks,
T.

Hi @tobias.stoltmann, i think you’re not doing anything wrong.

The geometric properties for your construction plane are set in the viewport but the drawing (of colors) is done by Rhino not your code. To see your custom cplane with your own colors, you would have to draw it yourself, eg. in a conduit using DrawConstructionPlane

_
c.