BUYballbearing
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-14, Last change: 2025-09-15
returns a list of buyable and used standard parts for ball bearings
See Also: SGdesignDIN912DIN985axialbearing
, SGdesignDIN912DIN985axradbearing
Example Illustration
Syntax
TL=BUYballbearing([Ri])
Input Parameter
Output Parameter
Examples
BUYballbearing
BUYballbearing(2.5)
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
Algorithm (Workflow)
This function, BUYballbearing, is designed to return a list of buyable and used standard parts for ball bearings based on the provided inner diameter.
Input Parameters
- Ri: Inner Diameter (optional). If provided, the function will filter the bearings based on this diameter.
Output Results
- TL: A table list of bearings that match the criteria.
Algorithm Steps
- The function starts by extracting the inner diameter
Ri from the input arguments using getfuncparams.
- A predefined table
Tab contains information about various ball bearings, including their dimensions, type, source, and date.
- The dimensions of each bearing are extracted into an array
M using elem2array.
- If
Ri is provided, the function calculates the absolute difference between Ri and the inner diameters in M.
- The index
ii of the bearing with the smallest difference is found using find and min.
- If
Ri is not provided, all bearings are considered by setting ii to include all indices.
- The table list
TL is created by selecting rows from Tab based on ii.
- For each entry in
TL, the URL is converted into a hyperlink using strhyperlink.
- Finally, the function outputs messages using
dbprintf to suggest using DIN433 washers for radial bearings and to avoid using DIN 9021.
Algorithm explaination created using ChatGPT on 2025-08-19 07:26. (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