Create pipeline view in C# - Rhino/Visual Studio

I’m trying to create a preview of the pipeline applied to a line that is being created, all in c# in visual studio. Can anyone help me?
Ideal would be this:


Notice that the pipeline follows the mouse cursor to insert the second point and thus create the line.

What do i have to code:

Hi @lucas_ngbr,

I assume you want to dynamically draw a Pipe. Is this correct?

If so, then during dynamic draw, create a Brep pipe, using Brep.CreatePipe, and then draw the Brep using DisplayPipeline.DrawBrepShaded and DisplayPipeline.DrawBrepWires.

– Dale

2 Likes

Thanks!