AnsweredAssumed Answered

how to generate very simple G-code with API/Macros

Question asked by M. Doga Dogan on Jul 11, 2017
Latest reply on Jul 14, 2017 by Jason Swackhamer

Hello,

 

I would like to generate a G-code for a very simple sketch. See the image below for an example. I would like to dynamically trace something like the 2D "M" letter indicated in orange in the below screenshot.

Screenshot 2017-07-11 13.33.49.png

 

By using a macro/API calls, I would like to generate something like:

G01 X30.918 Y34.218

G01 X58.72 Y68.62 P1

G01 X81.045 Y56.184

G01 X117.27 Y84.327

G01 X140.017 Y46.915

 

Basically it's just writing the X-Y coordinates of the sketch corners/points with respect to a given point. I know how to generate G-codes with HSMWorks but I cannot use it for macros. Therefore, I was wondering if it's possible to generate a code like the one above with SW API calls without using an additional complex tool.

 

Any ideas?

 

Thank you in advance,

Doga

Outcomes