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

 missing image of BUYballbearing(Ri)

Syntax

TL=BUYballbearing([Ri])

Input Parameter

Ri: Inner Diameter

Output Parameter

TL: Table list

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

Output Results

Algorithm Steps

  1. The function starts by extracting the inner diameter Ri from the input arguments using getfuncparams.
  2. A predefined table Tab contains information about various ball bearings, including their dimensions, type, source, and date.
  3. The dimensions of each bearing are extracted into an array M using elem2array.
  4. If Ri is provided, the function calculates the absolute difference between Ri and the inner diameters in M.
  5. The index ii of the bearing with the smallest difference is found using find and min.
  6. If Ri is not provided, all bearings are considered by setting ii to include all indices.
  7. The table list TL is created by selecting rows from Tab based on ii.
  8. For each entry in TL, the URL is converted into a hyperlink using strhyperlink.
  9. 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