Jump to content
UltiMaker Community of 3D Printing Experts

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

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 30 replies
      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.

        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 18 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 22 replies
    • Create New...