Syntax
[M,TL,Taborder]=DIN464(M)
Input Parameter
M : | | Desired metric diameter |
Output Parameter
M : | | Metric Diameter in Tab |
TL : | | Table row |
Taborder : | | Table colum names |
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, named DIN464
, is designed to return a table of dimensions for metric threads with a knurled head, based on the DIN 464 standard. The function is part of the SolidGeometry library and was introduced in version 4.9.
Input Parameters
- M: The desired metric diameter. If no input is provided, the function defaults to
M=0
.
Output Results
- M: The metric diameter from the table.
- TL: The corresponding table row for the given metric diameter.
- Taborder: The column names of the table, which are 'M', 'Knurled_Diameter', 'Knurled_Height', 'Socket_Diameter', and 'Head_Height'.
Algorithm Steps
- Check if the input parameter
M
is provided. If not, set M=0
.
- Define the column names in
Taborder
.
- Initialize the table
Tab
with predefined values for different metric diameters and their corresponding dimensions.
- If
M=0
, return the entire table Tab
and display it as a table with column names if no output is expected.
- Iterate through each row of the table
Tab
to find an exact match for the input metric diameter M
.
- If an exact match is found, return the corresponding row
TL
.
- If no exact match is found, issue a warning and find the closest match by calculating the absolute difference between the input
M
and the first column of Tab
.
- Return the closest match and its corresponding row
TL
.
Algorithm explaination created using ChatGPT on 2025-08-19 01:28. (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