gcodecopytemp

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 3D-Print/Production
Introduced first in SolidGeometry 5.1, Creation date: 2021-03-03, Last change: 2025-09-15

just makes copies of an ANYCUBIC/CURA gcode file with changed hot end and base temperature



See Also: SGgcodefilechangetemp , filenameadddate4gcode

Example Illustration

 missing image of gcodecopytemp (fname,)

Syntax

gcodecopytemp(fname,[])

Input Parameter

fname: existing gcode file name

Examples


gcodecopytemp('/Volumes/AP5TIMLUETH/AP_ADAM360(2020-12-08)/22060AP_ADAM360(2020-12-08).gcode')




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This algorithm is designed to create copies of a gcode file with modified hot end and base temperatures. It is part of the SolidGeometry library and was introduced in version 5.1. The function is named gcodecopytemp and is authored by Tim Lueth.

Input Parameters

Algorithm Steps

  1. Check if the file specified by fname exists using the isfile function. If the file does not exist, an error is thrown with a message indicating the file is missing.
  2. Call the function filenameadddate4gcode with fname and true as arguments. This function renames the file to adhere to a standard naming convention for gcode files.
  3. Invoke the function SGgcodefilechangetemp multiple times with different temperature settings:

Each call to SGgcodefilechangetemp modifies the gcode file to reflect the new temperature settings, effectively creating multiple versions of the original file with different temperature configurations.

Algorithm explaination created using ChatGPT on 2025-08-19 00:00. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21