Jump to content

CuraEngine slicing help


Recommended Posts

Posted (edited) · CuraEngine slicing help

I am developing an application and want to use CuraEngine for the G-Code generation. I have created custom printer and extruder definitions for my desired configuration and tried using them both in the Cura UI and in CuraEngine. Unfortunately, while Cura UI easily detects my custom printer definition and I am able to slice the passed STL-model and later view the generated G-Code, I have no success whatsoever slicing in CuraEngine.

If anyone could help me solve this issue, I would be very thankful. I will try to provide as much info as I can.

    "version": 2,
    "name": "Extruder 1",
    "inherits": "fdmextruder",
        "machine": "cobod_bod_2",
        "position": "0"

        "extruder_nr": { "default_value": 0 },
        "machine_nozzle_size": { "default_value": 40 },
        "material_diameter": { "default_value": 40 }
  • Attached the .stl mesh
  • Slice command and arguments
CuraEngine.exe slice -v -p -j "cobod_bod_2.def.json" -o "CuraDebug.gcode" -l "MyFriends Basement.stl"


Personally, I think the issue is highlighted in in the message "Stopping process because there are no non-empty layers", but I have no idea what that means 😞

Note: the "fdmprinter.def.json" and "fdmextruder.def.json" as well as other required files are located in the same directory as the CuraEngine.exe. If any other information needed I would gladly provide it.

MyFriends Basement.stl

Edited by Kaby
slight formatting change
  • Link to post
    Share on other sites

    Posted · CuraEngine slicing help
    2 minutes ago, gr5 said:

    Does it slice if you don't pass it any configuration file?



    Do you mean not using the "-j "cobod_bod_2.def.json" parameter? If you do, then my answer is no, it doesn't:

    d:\Program Files\CuraEngine\Install\bin>CuraEngine.exe slice -v -p -o "CuraDebug.gcode" -l "MyFriends Basement.stl"
    Cura_SteamEngine version master
    Copyright (C) 2021 Ultimaker
    *license stuff*
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    [ERROR] Trying to retrieve setting with no value given: 'mesh_rotation_matrix'
  • Link to post
    Share on other sites

    Posted · CuraEngine slicing help

    Have you tried any other models? Have you tried slicing this model in Cura normally?


    Your model is very large. Not in bytes, but in dimensions. In Cura, I had to scale it down to 1%. But I guess you are working with a "concrete" printer.


    In addition to that, the model is modeled in a way that is not all that well-suited for (FDM) 3d printing. There are a lot of unnecessary internal structures. Cura does not mind them too much, but mister Mijagi told me before learn fly, first learn stand. ie: don't start with messy models.


    I think the main problem though is that CuraEngine expects to be passed models that are positioned well in the build volume. This model seems to have an origin far away from the model. Cura (the frontend) automagically moves the model to the center of the buildplate. CuraEngine does not (it expects the frontend to do that).

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites

    Posted · CuraEngine slicing help

    I'm just about to try another sample model and a built in printer definition. I have tried slicing this model in Cura normally and it worked well.


    Yes, it is large, and you are absolutely right: I am working with a concrete printer.


    Thank you for pointing that out. The model was exported from Autodesk Revit and I just assumed the software did a pretty good job. I will take this into a count.


    Oh, that is such a useful insight. I did not know, that the frontend does it by itself and just assumed it would work just fine in the CuraEngine. That is probably the main issue.

    Thank you so much! You gave me a direction to go now 🙂

  • 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

      • 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
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 9 replies
    • Create New...