SGDIN985

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Components
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-16, Last change: 2025-09-14

creates a Solid Geometry with respect to DIN 985



See Also: SGiso4026 , SGiso4762 , SGDIN433 , SGDIN912 , DIN985

Example Illustration

 missing image of SGDIN985(M)

Syntax

SG=SGDIN985(M)

Input Parameter

M: Diameter metric

Output Parameter

SG: Solid Geometry including Frames

Examples


SGDIN985(2.5)




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, SGDIN985, generates a solid geometry model based on the DIN 985 standard. It is part of the Solid Geometry library and was created by Tim Lueth in 2020.

Input Parameters

Algorithm Steps

  1. Retrieve function parameters using getfuncparams for M, L, CPL, and p.
  2. Load the DIN 985 table using DIN985(0).
  3. Find the corresponding entry in the DIN 985 table for the given diameter M using DINfindinTab.
  4. If L is not specified, set it to the default length from the table.
  5. If CPL is not specified, calculate it using PLcircle with the diameter from the table.
  6. Create the solid geometry using SGDIN13 with the parameters M, L, p, and CPL.
  7. Set transformations for the solid geometry using SGTset for 'B' and 'F' frames.
  8. Assign a stamp name to the solid geometry using sprintf.
  9. If no output is requested, plot the solid geometry using SGfigure, SGplotalpha, and SGTframeplot.

Output

Algorithm explaination created using ChatGPT on 2025-08-19 01:04. (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