Jump to content
Ultimaker Community of 3D Printing Experts

CuraEngine command line: use Cura .cfg

Recommended Posts

Posted (edited) · CuraEngine command line: use Cura .cfg


I'm working with Cura (2.6.1) under Windows. I have created a custom machine profile and some material/quality profiles.

Slicing with the Cura GUI is going well.

Now i want to automate things, i.e. i want to use CuraEngine to slice my STL files into gcode.

To do this i would have to use many "-s" commandline options to specify the non-default slicer options (a look into cura.log reveals that it is calling CuraEngine with about 330 "-s" options, for example).

Now the question is:

Is it possible to use the Cura(-GUI) generated profiles (.cfg files) instead of listing them one by one on the CuraEngine command line? It seems that there is no commandline option to specify Cura profiles :-(

Or is there some other way like generating a list of "-s" options from the Cura profiles?

Edited by Guest
  • Link to post
    Share on other sites
    Posted · CuraEngine command line: use Cura .cfg

    @nallath should be able to answer this. But why not just cut and paste the 330 -s options into a script and be done with it?

    Also I think there is a way to pass a file with parameters instead of passing them on the command line.

  • Link to post
    Share on other sites
    Posted · CuraEngine command line: use Cura .cfg

    The frontend doesn't just use just one file. A single extrusion machine can have: User, quality_changes, quality, material, variant, definition changes and definition.

    Settings are handled in a stack like way; If a setting is set in the user profile, that value is used. If it isn't there, the value of quality_changes is used (and on until definition is reached, at which point the default is used).

    You could create a custom definition file where you set the defaults to what you want, but this is a bit tricky for multi extrusion machines.

    We tend to use bat/shell files with certain settings to slice them if we don't want to use this method.

  • Link to post
    Share on other sites
    Posted · CuraEngine command line: use Cura .cfg

    Essentially yes, but the GUI does not use the command line interface. Instead it uses a protocol based on google protobuf to communicate with a CuraEngine process that stays running while the GUI is open.

  • Link to post
    Share on other sites
    Posted · CuraEngine command line: use Cura .cfg

    How can I generate a .bat file to pass at CuraEngine about 300 parameters instead of use -s option?

    Can you send an example ?

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Talking additive | The 3D printing podcast
        Why should we be the only ones asking questions? Join us and ask Jabil all your questions on September 22nd 5pm CET
          • Like
        • 3 replies
      • Ultimaker masterclass: Optimizing your Ultimaker Cura workflow
        Save your seat for either broadcast on September 23.
        What will you learn?
        · Best practices for iterative print preparation and every lesson you should learn from each print
        · The right way to use per-object settings and when they are most useful
        · Easy-to-use resources for anyone who wants to develop their own printer definitions, plugins, or print profiles
        · How to optimize print profile settings and whether to “keep” or “discard” changes
        · When is the right time to export your drawing from CAD? (Based on Ultimaker Cura’s surprising power as 3D control software)
        · And a whole lot more tips and tricks!
        How can I join?
        This free masterclass will take place twice:
        1. 11am CEST (5pm SGT, 5am EDT)
        2. 5pm CEST (11am EDT, 8am PDT, 11pm SGT)
          • Like
        • 0 replies
      • Do you use 3D printing at work? Let us know
        It doesn't matter if you are using 1 Ultimaker or 10, there is inspiration in everything. We're looking for ...
        • 1 reply
    • Create New...