Jump to content

Batch slicing stl files. Batch generating gcode files


Murmur

Recommended Posts

Posted · Batch slicing stl files. Batch generating gcode files

Hello

Is there an extension or configuration I could use to batch generate gcode files from a number of stl files.

The optimum solution for me would be to point Cura to a folder of stl files and the program would slice each one using the settings in the project I currently have open and save a gcode file for each either to the same or different folder.

 

 

  • Link to post
    Share on other sites

    Posted · Batch slicing stl files. Batch generating gcode files

    using CuraEngine 

     

    CuraEngine slice -v -j ../Cura/resources/definitions/dual_extrusion_printer.def.json -o "output/test.gcode" -e1 -s infill_line_distance=0 -e0 -l "/model_1.stl" -e1 -l "fully_filled_model.stl" 

     

    • Like 1
    Link to post
    Share on other sites

    • 1 year later...
    Posted · Batch slicing stl files. Batch generating gcode files
    On 11/14/2021 at 11:07 PM, Cuq said:

    using CuraEngine 

     

    CuraEngine slice -v -j ../Cura/resources/definitions/dual_extrusion_printer.def.json -o "output/test.gcode" -e1 -s infill_line_distance=0 -e0 -l "/model_1.stl" -e1 -l "fully_filled_model.stl" 

     

    Hi CUQ, thank you to give this direction.

    I'm trying to use cura in batch, embedded in an optimization loop.

    I have cura 5.3.1, it seems to me that the directories are not the same like your post. 

    I'm using a Creality Ender-3 S1 Pro.

    I would like to create gcode from stl files exported from a CAD sw (Siemens NX).

    This stl file is automatically generated from the optimizer (Heeds) changing some variables.

    I would need to lunch cura for each of these stl file that will be created in a dedicated directory for each individual design (all this is created automatically by the optimizer).

    I need to be able to lunch cura engine for each design in order to obtain a gcode in that directory.

     

    2023-09-0508_42_03-Batchslicingstlfiles.Batchgeneratinggcodefiles-UltiMakerCura-UltiMak.thumb.png.d2208aa67bf2794defa6cc1cfe685536.png

     

  • Link to post
    Share on other sites

    Posted (edited) · Batch slicing stl files. Batch generating gcode files

    Yes in 5.X it's now :

     

    .\share\cura\resources

     

    Note form the CuraEngine Help message :

    In order to load machine definitions from custom locations, you need to create the environment variable CURA_ENGINE_SEARCH_PATH, which should contain all search paths delimited by a (semi-)colon.

     

    Other topic on this subject :

     

     

    Edited by Cuq
  • Link to post
    Share on other sites

    Posted · Batch slicing stl files. Batch generating gcode files

    I've found it.

     

    C:\Program Files\UltiMaker Cura 5.3.1\share\cura\resources\definitions

    in my case (ender3S1pro)

    Curaengine slice -v -j creality_ender3s1pro.def.json

     

    pay attention: you need to define a new environment variable

     

    2023-09-0509_54_02-EnvironmentVariables.thumb.png.611e980972fcf0542ad28fc349702c5e.png

     

     

  • Link to post
    Share on other sites

    Posted · Batch slicing stl files. Batch generating gcode files

    sorry, just after your answer. Thank you Cuq

     

  • 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
        • 26 replies
    ×
    ×
    • Create New...