Syntax
SG=SGiso4026(M,L,[imb])
Input Parameter
M : | | Diameter (millimeter) |
L : | | Length (millimeter) |
imb : | | true=imbus; false=simple screw |
Output Parameter
SG : | | Solid geoemetry of Hexagon socket set screw with flat point |
Copyright 2015-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, SGiso4026
, generates the solid geometry of a "Hexagon socket set screw with flat point" according to DIN913 or ISO4026 standards.
Input Parameters
- M: Diameter in millimeters.
- L: Length in millimeters.
- imb: Optional boolean parameter. If true, the screw is an "imbus" (hex socket); if false, it is a simple screw. Default is true.
Output
- SG: Solid geometry of the hexagon socket set screw with a flat point.
Algorithm Steps
- Initialize
imb
to true. If a third argument is provided and is not empty, set imb
to that value.
- Call
DIN913(M)
to get the thread length TL
. Set M
to TL(1)
.
- Call
DIN13(M)
to get the screw length SL
.
- Create the main screw geometry using
SGscrewDIN(M,L)
.
- Create a hexagon socket using
SGofCPLz
and PLcircle
with parameters derived from TL
and dofn(6)
. Align it to the top of the screw geometry.
- Create a cylindrical feature using
SGof2CPLz
and PLcircle
with parameters derived from SL
.
- If
imb
is true, perform a boolean operation to combine the main screw geometry with the hexagon socket.
- Align the cylindrical feature under the main screw geometry and perform a boolean operation to combine them.
- If no output is requested, plot the resulting geometry with specific view settings and lighting.
Algorithm explaination created using ChatGPT on 2025-08-19 07:39. (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