by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Fits
Introduced first in SolidGeometry 5.0, Creation date: 2020-12-18, Last change: 2025-08-19
SGwarnfittinguse
clear global AMprinter; SGwarnfittinguse;
This function, SGwarnfittinguse, is designed to alert users and developers when 3D printer-specific size adjustments and fittings are being utilized within a function. It is part of the SolidGeometry library and was introduced to ensure that users are aware of the printer-specific parameters that might affect the function's behavior.
The function does not take any input parameters directly. Instead, it relies on a global variable:
AMprinter: A global variable that stores the current printer settings. If this variable is empty, the function will issue a warning.AMprinter is empty.AMprinter is empty, the function prints a warning message to the console. This message informs the user that the function uses 3D printer-specific parameters defined by the DIN4AMfitting function.DIN4AMfitting function with the syntax DIN4AMfitting('''', ''set'') .DIN4AMfitting without arguments, which likely initializes or checks the fitting settings.DIN4AMfitting('anycubic', 'set'). This sets the printer to "anycubic," which is the developer's current preferred printer.The function is intended to be used at the beginning of other functions that require printer-specific adjustments. It ensures that users are aware of the need to configure their printer settings appropriately to avoid unexpected results.
Algorithm explaination created using ChatGPT on 2025-08-19 01:32. (Please note: No guarantee for the correctness of this explanation)