views:

59

answers:

1

I want to draw and manipulate logic flow (as opposed to analog) circuit diagrams and I'm trying not to reinvent the wheel.

Problems like positioning, line drawing, line crossing and connecting, path finding, rubberband lines, and drag & drop are also identical in flow charts, UML diagrams, or class diagrams so I started by viewing related topics via Google and Stack Overflow. However, the following requirements seemed to keep me from finding anything that quite fit:

  • assuming a chip has an image with input and output stubs, the connecting lines would connect to the chip only in the exact spots of the I/O stubs
  • the color of connecting lines are able to be set as per a chip's output

Is there an existing .NET 2d graphics library that would be suitable for drawing circuit diagrams?

+1  A: 

You can try Open Diagram. Specifically look at the Port class which determines exactly where a line docks to a shape.

James Westgate