SGwarnfittinguse

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

devolper fnct to be used in a SG fnct if fittings are used within the fnct.

Description

To warn users and programmers that printer specific size adjustments and fittings are used this function should be called at the beginning of a function. The warning appears only time and would not appear if
DIN4AMfitting('''', ''set'')
was called before.
Avoid to use fixed settings in functions!
Use DIN4AMfitting('anycubic', 'set'); Only once after starting matlab or when designing for a different printer


See Also: DIN4AMfitting , slfit

Example Illustration

 missing image of SGwarnfittinguse

Syntax

SGwarnfittinguse

Examples


clear global AMprinter; SGwarnfittinguse;




Copyright 2020-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 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.

Input Parameters

The function does not take any input parameters directly. Instead, it relies on a global variable:

Algorithm Steps

  1. The function checks if the global variable AMprinter is empty.
  2. If 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.
  3. The warning also advises the user to set a specific 3D printer using the DIN4AMfitting function with the syntax DIN4AMfitting('''', ''set'').
  4. The function then calls DIN4AMfitting without arguments, which likely initializes or checks the fitting settings.
  5. Finally, the function sets a default printer by calling DIN4AMfitting('anycubic', 'set'). This sets the printer to "anycubic," which is the developer's current preferred printer.

Additional Notes

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)

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