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 Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
          • Like
        • 10 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...