SGDIN912

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

creates a Solid Geometry with respect to DIN 912



See Also: SGiso4026 , SGiso4762 , SGDIN433

Example Illustration

 missing image of SGDIN912(M,L)

Syntax

SG=SGDIN912([M,L])

Input Parameter

M: Diameter metric
L: Length metric mm

Output Parameter

SG: Solid Geometry including Frames

Examples


SGDIN912(2.5,8)




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, SGDIN912, generates a solid geometry model of a screw according to the DIN 912 standard. The function takes two input parameters, M and L, which represent the diameter and length of the screw, respectively.

Input Parameters

Output

Algorithm Steps

  1. Retrieve the diameter M and length L from the input arguments, using default values if not specified.
  2. Load the DIN 912 standard data using the DIN912 function.
  3. Adjust the radius for the hexagon using the dofn function.
  4. Find the relevant table line TL for the given diameter M using the DINfindinTab function.
  5. Set an overlap ol of 0.1 mm.
  6. Create the initial screw geometry using the SGDIN13 function with the adjusted length L + ol.
  7. Translate the geometry along the z-axis by -L using the SGtransP function.
  8. Create additional geometry components SGA and SGB using the SGofCPLz function with circular profiles.
  9. Combine the geometries using SGunion and SGsubtract functions to form the final screw model.
  10. Set transformation properties for the geometry using the SGTset function.
  11. Assign a stamp name to the geometry based on the diameter M.
  12. If no output is requested, plot the geometry using SGfigure, SGplotalpha, and SGTframeplot functions.
Algorithm explaination created using ChatGPT on 2025-08-19 07:42. (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