SGDIN13
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Components
Introduced first in SolidGeometry 5.2, Creation date: 2022-03-19, Last change: 2025-09-15
returns a screw geometry related to DIN13 (same as SGscrewDIN)
Description
Written as "SGscrewDIN" for SG-Lib 4.4 and SGofCPLcommand
It is used to create wrt DIN13 watertight threads for
a) Screws (Positive Diameter, no outer CPL contour)
b) Screw tap (Negative Diameter, no outer CPL contour)
c) Nuts (Negative Diameter, outer Radius or CPL contour, slot required)
In SG 4.5 the Screw starts at z=0 (Michael Kruttschnitt)
In SG 4.7 bug using CPLs removed by comment from Simon Schiele
In SG 5.0 left-hand threads are also supported
In SG 5.4 steep threads are supported as type "B" or "C"
See Also: SGsteepspindle
, slpitch
, SGDIN985
, PLthreadDIN
Example Illustration
Syntax
[SG,kd]=SGDIN13(D,L,[p,CPL,shr,left,"Type","STL"])
Input Parameter
D: | | Diameter (negative creates a screw cutter or nut) |
L: | | Length |
p: | | optional pitch |
CPL: | | Outer Diameter or CPL, creates nuts when D<0 and Holes if D>0 |
shr: | | shrinkage for nuts; default is 0; use slfit('c') or NaN for steep thread nuts |
left: | | if true, a left winding is designed |
"Type": | | "A" (default) DIN13, "B" for steep thread with 1 winding, "C" for steep thread and max winding |
"STL": | | if used an STL file will be writtemn |
Output Parameter
SG: | | Solid Geometry |
kd: | | core diameter |
Examples
SGDIN13( 32,50) % Screw
SGDIN13(+32,50,'',25) % Screw with tube to insert a carbon or metal bar
SGDIN13(-32,50) % Screw cutter
SGDIN13(-32,50,'',35) % circular nut
SGDIN13(-32,50,'',PLcircle(40,7)); nut hexagon shape
SGDIN13( 32,50,'','','',true) % Screw - Left orientation
SGDIN13(-16, 50,8,PLcircle(12),slpitch(-16,8),'Type','C')
Copyright 2022-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
Last html export of this page out of FM database by TL: 2025-09-21