BendTable for hoses and tubes
This function takes a bunch of IGES-Files, looks for rational B-Splines (IGES entity 126) and makes a bending table out of each of the splines. If end and start point have the same coordinates, these splines get connected. Parameters control the way the splines get discretized and simplified. For each spline the bend table gets written as [filename]_bend_table_spline_[#].csv and for each file a summary gets written as [filename]_summary.txt, both in the same location as the IGES file.
If there is a valid parameter file with the same name as a processed IGES file and extension .csv, the parameters from inside this file are used. If this file doesn't exist or You agree to overwrite it, it gets written with the parameters used in this run. Open the file to see the format. Parameters passed to the function overwrite the ones from the parameter file.
To make things easier, export only the center lines of the hoses or tubes into the IGES file. Only curves, no surfaces, no bodies etc. Use attached Demo files for Solid Edge.
To get the displacement angle of elbow fittings of crimped hose assemblies, model each fitting as a line perpendicular and connected to the end of the hose center line, showing in the direction of the fitting. Take care the the length of this line is longer than the minimal feed parameter (see below), otherwise this segment gets dropped.
In the result summary, the desired value is the 'rotation angle between first and last spline segment', measured counterclockwise from the near end to the far end.
see help for usage.
This program is in a very early stage and probably won't get developed further. Not much testing occurred. Only tested with IGES export out of Solid Edge ST8. Use with caution. Check all results twice, before using them!
引用
Peter Kövesdi (2024). BendTable for hoses and tubes (https://www.mathworks.com/matlabcentral/fileexchange/55800-bendtable-for-hoses-and-tubes), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxカテゴリ
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!