LaserWeb4 icon indicating copy to clipboard operation
LaserWeb4 copied to clipboard

Help with new codegenerator

Open valerio84 opened this issue 6 years ago • 1 comments

Hello,

I have a question. I would like to add a new gcode generator in order to work with a custom laser cut.

In order to do this, i tested something really simple.

i've modified the default generator like this:

file: default-generator.js

  • line 15 : let gcode = "x7005"; instead of let gcode = "";
  • line 25: let gcode = "x7006"; instead of let gcode = "";

I saved the modified file. In the console i write "npm start", but when i try to generate gcode from the web app, i see there is no change; the generated code is Always the same.

Any help please?

valerio84 avatar May 25 '18 13:05 valerio84

To select the generator yo have to also add it on settings and on getGenerator function. LW does not introspect to see what generators have available. Check https://github.com/LaserWeb/LaserWeb4/pull/473/commits/aae179cd3991dd7d70ac39e10ee3e457834b9198

jorgerobles avatar Jun 23 '18 11:06 jorgerobles