0

I am trying to create a C# software that can control the CNC machines, First I am trying to create a 3d Space area in the PictureBox (or Pannel), I have gone through the internet and reached about this and I got one video. He made a 3D place in the form space, and it was a good tutorial but I don't know how to create a coordinate system in that space as you see in the image that I have given below.

Pls, Help me to do this.

enter image description here enter image description here

If I get the proper solution for this, in the future I can develop this project. Thank you, guys...

Update:

Actually, I have designed a C# program That controls the CNC machines, For example, we can take UGS, There is much software out there but I need to create this in C#. The Only thing I am suffering here is the 3D coordinate system. How to create the Axis diagram in 3D. Example: Planet Cnc's "Cnc USB Controller" I want to create this software in C#.

Thanks...

  • There is two links in the same link so pls check that. – Creating Creations Oct 19 '21 at 04:58
  • I would suggest checking out wpf and/or [helix 3d](https://github.com/helix-toolkit/helix-toolkit) for your 3d needs. Winforms is not well suited for 3D graphics. However, the question is currently way to broad to provide a good answer for. – JonasH Oct 19 '21 at 06:26
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 19 '21 at 06:43
  • Thanks, jonash for the extension, I will try this. – Creating Creations Oct 19 '21 at 10:45
  • Actually, I have designed a C# program That controls the CNC machines, For example, we can take UGS, There is much software out there but I need to create this in C#. The Only thing I am suffering here is the 3D coordinate system. How to create the Axis diagram in 3D. Example: Planet Cnc's "Cnc USB Controller" I want to create this software in C#. – Creating Creations Oct 19 '21 at 10:46
  • first, if you're beginner i recommended you to use Matlab software to program the code, because it is very easy to deal with arrays and variables. second, to program a code for control coordinates, it is depends on the type of your cnc machine you want to design, in most of cnc machine there are two basis motion, linear motion and circular motion. learn how to control them. third, which micro-controller you are using? – safa sabr Nov 11 '21 at 15:53

2 Answers2

0

Build a CNC CAD programmer from skratch it's not a trivial activity.

You should be skilled in:

  • Math and Geometry in particular (vector/matrix calculus, base transformation, ...)
  • A language to comunicate with CNC (maybe G Code)
  • 3D file formats

etc.

GibbOne
  • 629
  • 6
  • 10
0

This is old, and you should have fixed the problem by now... but I hope to help someone in the future.

Have you seen Helix-toolkit? This library provides easy 3D camera and object controls for .Net Framework. I used this library in WPF C# for an application that generated G-Code for a CNC machine... this saved me in the simulation.

You can import 3D models (.3Ds or .obj) from your machine to 3D Panels (HelixViewport3D) and use them in the simulation or create meshes on demand in C#.

The documentation is simple, but on GitHub there are lots of examples.

Helix-toolkit on GitHub

dwpessoa
  • 440
  • 4
  • 15