Jump to content

material as prefix on G Code


HairyOtter

Recommended Posts

Posted · material as prefix on G Code

Hello, is there an option to automatically add the material type to the G Code file name?

Now the printer is added to the file name, since I only have one printer (yet) I disabled this in the options.

When I have more printers I think its easier to have an SD card for each printer so the printer isn't needed in the file name. I now have designs made for both PLA as PETG so it would be nice to see which file uses which material. 

  • Link to post
    Share on other sites

    Posted · material as prefix on G Code
    2 hours ago, HairyOtter said:

    Am I the only one who thinks this is a useful option? 

    I do this manually, for example: "model_v1234_pet.gcode". But on my UM2 the name can be maximum 20 characters; the rest is cut off on the little display. So I often have to abbreviate the model name and version number.

     

    Depending on the priority, and if space allows it, sometimes I also include other specs such as layer height (if deviating from my normal 0.1mm), or the amount of models on the build-plate (if more than one). E.g.: "mod1234_02mm_3x_pet.gcode". This comes in handy after a couple of weeks, if I have to print the same model again.

     

  • Link to post
    Share on other sites

    Posted · material as prefix on G Code

    I posted this answer elsewhere, for a similar query. Done for Windows but shouldn't be much different for Mac:

    How to change the prefix in saved Cura files.

    In this example I use a Wanhao i3 plus (for other printers copy the relevant printer file)

    Copy the following file to your desktop and rename the copy to your preference:

    C:\Program Files\Ultimaker Cura 4.2\resources\definitions\wanhao_i3plus.def.json

    I renamed it “wanhao_i3plus_PETG.def.json” in my example

    Open the file to alter it, I use a program called “Code Writer”

    Within that file, edit the name (line 3) to your preference. Remember the first character of each word in the name will become the prefix of files created, so don’t use spaces between words if needed.

    Example:

      "name": "Poly EthyleneTerepthalateGlycol"

    Will give the prefix “PE_” (you could also call it P ETG to get the same effect, or start with the printer name)

    If you use a single word, you will only get a single character prefix.

    Then copy the new altered file back into the folder, you need administrator rights for this.

     

    When you open Cura, the printers will now include the one created, and it will still be under the “Wanhao” brand name.

    When you select the printer called “Poly EthyleneTerepthalateGlycol” you can then select a material profile to attach to it. Then whenever you open that printer profile in future, it will be attached to that material.

     

    For example I have a printer named Poly LacticAcid attached to PLA material (will get “PL_” prefix, and Poly EthyleneTereptheneGlycol attached to PETG material (will get “PE” prefix).

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