SGlockingDIN912DIN985

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Automatic Design
Introduced first in SolidGeometry 5.5, Creation date: 2025-07-21, Last change: 2025-09-15

Returns two bodies with DIN912/DIN985 locking method


Use carefully: The 'SGlockingDIN912DIN985' function has not yet been extensively tested

Description

This function takes two solids {SGA, SGB} and designs a screw connection between the two bodies using a DIN912 cylinder head screw and a DIN985 self-locking nut. The screw head is always in SGA and the nut in SGB. The screw is specified as an array with {diameter and length according to DIN 912}. To position the screw connection in the solids SGA and SGB, either two frames {'FA', 'FB'} or a relation such as 'ontop', 'behind' are required. The frames are used to arrange the screw and the nut. If the string parameter "align" is used, the position of the body SGB is also adjusted. Without this parameter, the bodies remain in their positions, which makes sense in most cases of a design process. The string parameter "supp" is used to check whether there is enough material in SGA and SGB to accommodate the screw with the defined size. If necessary, supplementary material is added to the solids SGA and SGB so that the screw connection is technically possible.[spchk]

See Also: SGpipeclamp , SGdesignDIN912DIN985

Example Illustration

 missing image of SGlockingDIN912DIN985(M,SGs,FNs,

Syntax

SGs=SGlockingDIN912DIN985([M,SGs,FNs,"supp","align"])

Input Parameter

M: [M Diameter Length and distance] of DIN 981 Screw
SGs: cell with Solids {SGA, SGB}
FNs: cell with Frame Names {'F','B'} or simple relation such as behind
"supp": if used, material is supplemented to hold the screw, nut and head
"align": if used, the position of SGB is aligned with A, otherwise remains unchanged.

Output Parameter

SGs: cell list {SGA,SGB} mit new frames 'C' if spatial relations were used

Examples



A=SGbar([10 5 10]); A=SGTset(A,'F',TofFS(A,[0 1 0]));
B=SGbar([20 5 10]); B=SGTset(B,'B',TofFS(B,[0 -1 0]));

SGlockingDIN912DIN985([2.5 8],{A,B},{'F','B'}) % Using frame names
SGlockingDIN912DIN985('',{A, B}, 'ontop') % using ONE spatial relation
SGlockingDIN912DIN985('',{A, SGsphere(4)}, 'ontop')
SGlockingDIN912DIN985([3 20],{A, B}, 'behind') % Long screws without required material
SGlockingDIN912DIN985([3 20],{A, B}, 'behind','supp') % Long screws with supplemented material




Copyright 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