Syntax
[Nsub,Nadd,S,AParts]=SGdesignIgusdragchain([M])
Input Parameter
M : | | [2 5 2 7],true); % M2 DIN 7991, Distance 5, Pin 2 length 7) |
Output Parameter
Nsub : | | Subtraction solid (green) |
Nadd : | | Supplement solid (yellow) |
S : | | Screw (magenta) |
AParts : | | Parts list |
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, SGdesignIgusdragchain
, is designed to create the subtraction and supplement solids for fixing an Igus drag chain. It is part of the SolidGeometry library and was introduced in version 5.2.
Input Parameters
- M: A vector of parameters, defaulting to
[2 5 2 7]
. These represent:
M(1)
: Screw type, specifically M2 DIN 7991.
M(2)
: Distance, set to 5.
M(3)
: Pin diameter, set to 2.
M(4)
: Pin length, set to 7.
Output Results
- Nsub: Subtraction solid (green).
- Nadd: Supplement solid (yellow).
- S: Screw (magenta).
- AParts: Parts list.
Algorithm Steps
- Retrieve function parameters using
getfuncparams
, with default values [2 5 2 7]
.
- Define offset
ol
as 0.1.
- Retrieve slot fit parameters
slt
and slc
using slfit
for 't' and 'c'.
- Create a base solid geometry
SG
using SGbox
and retain it with 'F'.
- Create an Igus geometry
IG
with dimensions [10 7 2]
and adjust its vertices.
- Create a subtraction cylinder
Psub
with radius M(3)/2 + slt
and height [-ol M(4)+slc]
, then translate it.
- Call
SGdesignDIN7991BushingE
to generate initial solids and parts list.
- Concatenate
Nsub
with Psub
to form the final subtraction solid.
- If no output is requested, plot the geometries using
SGTplotalpha
with specified colors and alignments.
Algorithm explaination created using ChatGPT on 2025-08-19 08:09. (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