Jump to content
Ultimaker Community of 3D Printing Experts

Custom nozzle prime

Recommended Posts

Posted · Custom nozzle prime

Hey, I'm in the process of making a custom definition file for my delta printer, I also have variant files for different nozzle sizes.


For priming my nozzle I used to use skirts because that was easy. I experimented a bit and was able to determine that my printer needed about 60mm^3 of filament to fully prime my nozzles. This allowed me to calculate my minimal skirt length, for different layer heights and nozzle/line_widths, in the "overides":{...} section of my definition file:

"skirt_brim_minimal_length": {
	"default_value": 750,
	"value": "60/(layer_height_0*line_width)",


The problem with using skirts is that my maximum build area is reduced. So I'm looking at other ways of priming my nozzle which have a minimal influence on my printing area and which I don't have to worry about removing during the print because the might interfere with the print it self. I thought of using a G2 arc command in the start code of my machine. This way I can print at the very outside of my bed and the gcode itself is very small.

The problem I'm encountering during the implementation ist that I would ne to insert calculated values into the start code. And I'm not sure on how to achieve this. Here is an example of what I would like to do but what sadly doesn't work:

"platform_adhesion": {
	"children": {
		"_prime_arc_start_x": {
			"label": "Prime arc start point in x",
			"description": "The starting point in x-axis direction of the priming arc",
			"unit": "mm",
			"type": "float",
			"default_value": "0"

"overrides": {
"default_value": "G1 X + '_prime_arc_start_x'"


I've played around quite a bit with this but haven't been successful. I've tried:

- changing the type from "float" to string"

- using python syntax to put variable into the string (link)

Even if I get this to work I'm not sure on how this would behave if I change my nozzle/variant once cura has been started.


Does anyone have any ideas on how I could either put values into my start code or have any other suggestions on how to prime my nozzle in a good way using the priming volume of 60mm^3?



  • Link to post
    Share on other sites
    Posted (edited) · Custom nozzle prime
    On 4/7/2020 at 3:38 PM, nallath said:

    Default_value can never be anything that is interpreted by python. I think you could try the following:


    "value": "'G1 X' + str(_prime_arc_start_x)"


    Thanks for the answer, that worked perfectly. 

    But I must admit I found a simpler solution to my problem. I was frustrated by using skirts because it took away too much from my build area. But this was only due to the fact that I had set the skirt distance to 10 mm. should work out perfectly:


    "adhesion_type": { "default_value": "skirt"},
    	"default_value": 750,
    	"value": "60/(layer_height_0*line_width)",
    	"minimum_value": "0",
    	"minimum_value_warning": "25",
    	"maximum_value_warning": "4000"
    "skirt_gap": { 
    	"default_value": "1`",
    	"value": "3*wall_line_width_0"


    Edited by schpongo
  • 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
    • 18 Visiting our virtual showroom

      1. 1. Have you visited our virtual showroom before?

        • Yes
        • No
      2. 2. If yes - what content did you find most interesting?

        • Information about Ultimaker ecosystem
        • Applications & application stories
        • Customer success stories
        • Webinar sessions
        • Material wall & ecosystem partners
        • New product introduction; software subscription plans
      3. 3. What of the below would make you consider visiting (again)?

        • New Live Ultimaker Webinar streams
        • ‘Ask Me Anything’ with industry experts or Ultimaker staff via main stage and public chat
        • New customer success stories
        • New applications
        • Presentations/news from ecosystem partners
        • Opportunity to meet representatives for an interactive tour
        • Helpful videos like Software tutorials
        • Other; leave input in a comment below!

    • Our picks

      • Ultimaker turns 10: A look back
        Ultimaker is turning 10 years old and that means it is story telling time! We'll explore 2010-2014, traveling through the evolution of the business from the Protobox and Ultimaker Original, to the major leaps forward with the Ultimaker 2 and Ultimaker 3.
          • Like
        • 0 replies
      • Ultimaker Transformation Summit
        Visit our virtual showroom and learn more about the Ultimaker ecosystem!
        • 14 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    • Create New...