1. About
  2. Features
  3. Explore

What is the proper way to give printer settings to CuraEngine? Is it possible to put all these settings into a file (like Json formatted)?

CuraEngine.exe -v -o "c:\3d\test.gcode" "c:\3d\test.stl" 

1 Answer 1

First, try

CuraEngine.exe --help 

The proper way is to first load in settings from the .def.json file of your printer. However, the formulae in the machine definition file are not being processed. CuraEngine only uses the default_value.

Then you specify setting overrides to set specific settings to a specific value. The specified settings are applied to the last provided object/extruder and otherwise globally.

CuraEngine.exe -v -j machine.def.json -s global_setting=global_value -e1 -s setting=extruder_value -l object_to_be_printed_with_second_extruder.stl -s setting=object_value -o output.gcode 

One-at-a-time mode is done by adding --next commands between each group:

CuraEngine [general settings] -g [settings for the first model] --next [settings for the next model]