by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Designs
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-10, Last change: 2025-09-15
[H,N,S,mt,parts]=SGdesignDIN912BushingE([sdl,ins,tpl,W])
sdl: | [M-Screw Length overlength and spacer]; default [2.5 6 0 0] | |
ins: | Characters for "T"unnel or "P"ocket; default is 'TT' for [HEAD NUT] | |
tpl: | Length of Insertion T/P for [HEAD NUT]; default is 10 10 | |
W: | Rotation angle for Pocket if required; default is 0; |
H: | Subtraction Solid for Head side including frame 'C' | |
N: | Subtraction Solid for Bushing side including frame 'C' | |
S: | Srew and Nut for Visualziation including frame 'C' | |
mt: | remaining wall thickness | |
parts: | parts list for assembly of one connection |
clc; [H,N,S]=SGdesignDIN912BushingE([5 10 0],'TT',40);
SGsubtract(SGbox,H,'alignT',{'C','Y-'})
SGsubtract(SGbox,N,'alignT',{'C','Y-'})
clc; [H,N,S]=SGdesignDIN912BushingE([2.5 6 0],'PT',40,pi/2);
SGsubtract(SGbox,H,'alignT',{'C','Y-'}); X=ans;
SGTplot(SGtransrelSG(S,X,'alignT',{'C','Y-'}))
clc; [H,N,S]=SGdesignDIN912BushingE([2.5 10 0 4],'PT',40,pi/2);
SGsubtract(SGbox,H,'alignT',{'C','Y-'}); X=ans;
SGTplot(SGtransrelSG(S,X,'alignT',{'C','Y-'})) % plot without spacer
SGTplot(SGtransrelSG(S,X,'alignT',{'C','Y-'},'transy',-4)) % plot with spacer