Jump to content

CuraEngine command line: use Cura profiles instead of "-s" options?


erri

Recommended Posts

Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

Hi,

i'm working with Cura (2.3.1) under linux. I have created a custom UM2 machine profile and some material/quality profiles.

Slicing with the Cura GUI is going well.

Now i want to atomate things, i.e. i want to use CuraEngine (from a Makefile) 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 stored in HOME/.local/share/cura) 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?

  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

    The logs output them when a slice starts. You can just copy them from there.

     

    Of course i can copy it from cura.log... But i am looking for a more integrated/elegant way, something that is more 'single source'.

    Problem is, for example, if i change the machine/profile in cura, i have to remember all places (scripts, Makefiles) where this profile is used (hardcoded settings) and have to update them by hand... This is duplicated and error-prone work.

    I would like to avoid such hardcoded settings and instead reference the cura profiles at theese places.

  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

    We don't have that. The setting architecture is quite complex. Porting it to the engine would only increase the odds of it going wrong (as we'd be re-implementing a bunch of code in another language). As we don't even use it, i don't think it's likely that we're going to spend time on this. We have a lot more stuff that has higher priority.

  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

    I’ve the same problem.

    Any news about how is possible to use the Cura generated profiles (.cfg files) instead of listing them one by one on the CuraEngine command line with -s option?

  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

    Nope. We haven't put any time into this. This might change in the future, but I don't expect this to happen in the very near future. The next release (2.7) won't have any changes regarding this.

  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

    Hi,

    i have written a python program cura-engine-wrapper.py that reads the slicing parameters from Cura machine and quality/material profiles and calls CuraEngine with them to slice a model (stl file).

    You can overwrite specific profile parameters on the command line and there are some additional use cases like listing available Cura containers/profiles or dumping the parameters of a given profile.

    You can find it here: http://github.com/ErwinRieger/ddprint/tree/master/scripts.

    More information here: http://ibrieger.de/cura-engine-wrapperpy-helper-to-call-curaengine-from-command-line.html.

    • Thanks 1
    Link to post
    Share on other sites

    Posted (edited) · CuraEngine command line: use Cura profiles instead of "-s" options?

    Hi,

    i have written a python program cura-engine-wrapper.py that reads the slicing parameters from Cura machine and quality/material profiles and calls CuraEngine with them to slice a model (stl file).

    You can overwrite specific profile parameters on the command line and there are some additional use cases like listing available Cura containers/profiles or dumping the parameters of a given profile.

    You can find it here: http://github.com/ErwinRieger/ddprint/tree/master/scripts.

    More information here: http://ibrieger.de/cura-engine-wrapperpy-helper-to-call-curaengine-from-command-line.html.

     

    Protip; use the CuraContainerRegistry. It does a bit more magic. If you ask the value from a stack that is returned there, it should also handle the resolve. Should be a simple as switching out the ContainerRegistry with the CuraContainerRegistry.

    Also; Very nice work!

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?
    @nallath: Thanks for the tip, i will look into this.
  • Link to post
    Share on other sites

    Posted · CuraEngine command line: use Cura profiles instead of "-s" options?

    Protip; use the CuraContainerRegistry. It does a bit more magic. If you ask the value from a stack that is returned there, it should also handle the resolve. Should be a simple as switching out the ContainerRegistry with the CuraContainerRegistry.

    Updated the script, replaced ContainerRegistry with CuraContainerRegistry.

    @@Nallath: The value for *infill_overlap* is not resolved/evaluated (neither by using ContainerRegistry nor by using CuraContainerRegistry):

    infill_overlap = =10 if infill_sparse_density < 95 and infill_pattern != 'concentric' else 0

    I think this code has to be evaluated somehow before it gets passed over to curaEnginge?

    Any hints?

  • 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

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 27 replies
    ×
    ×
    • Create New...