SGdragchain

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.2, Creation date: 2022-05-13, Last change: 2025-08-18

creates a 3D printable already assembled drag chain



See Also: SGdragstrip , SGdragchainelement

Example Illustration

 missing image of SGdragchain(L,R)

Syntax

SG=SGdragchain([L,R])

Input Parameter

L:
R:

Output Parameter

SG:




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 algorithm creates a 3D printable, already assembled drag chain using the SG-Library. The function is named SGdragchain and is designed to generate a series of interconnected elements that form a flexible chain.

Input Parameters

Output

Algorithm Steps

  1. Set the number of elements in the chain to n = 60.
  2. Retrieve the input parameters L and R using the getfuncparams function. Default values are used if parameters are not provided.
  3. Create the first drag chain element using SGdragchainelement(L, R).
  4. Convert the element into a structured geometry object with SGofSG.
  5. Extract the 'B' (back) reference point of the element using SGTget.
  6. Initialize the drag chain with the first element.
  7. Iteratively create and align additional elements to form the chain:
  8. Extract the 'F' (front) reference point of the last element.
  9. Convert the entire chain into a single structured geometry object.
  10. Remove temporary geometry data with SGTremove.
  11. Set the 'B' and 'F' reference points of the chain using SGTset.
  12. If no output is requested, visualize the chain:
Algorithm explaination created using ChatGPT on 2025-08-18 23:46. (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