SGwriteMultipleSTL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Import/Export
Introduced first in SolidGeometry 3.3, Creation date: 2017-01-14, Last change: 2025-09-14
writes a cell list of solid geometry in different STL files
Description
this function supports also the use of:
SGstampname to automaticallt create names in the cell list of the
XX comments to autotatically comment the desing method
SGpartsfuncparams to add automatically information on function calls and spare parts
See Also: SGnamedset
, SGwriteSTL
, SGwriteSeparatedSTL
, SGreadSTL
, SGanalyzeGroupParts
, SGarrangeSG
, SGpartslist
, sprintftext
, SGpartsfuncparams
, SGpartslistastext
Example Illustration
Syntax
ndir=SGwriteMultipleSTL(SG,[FNAMEFNAME,ONAME,Partext,iscenter,"turn"])
Input Parameter
SG: | | A cell list of different solids for different file |
FNAMEFNAME: | | optional file name |
ONAME: | | optional text name |
Partext: | | Partslist as text string, create by SGpartslistastext |
iscenter: | | 'x'y'z are the axis to center the object |
"turn": | | if used, the objects are automatically turned optimally 3D printing |
Output Parameter
Examples
[AParts]=SGpartslist('',SGpartsfuncparams); %% RECORD THE PARAMETERS USED
AParts=SGpartslist(AParts,sprintftext(1,' DIN7991 Screw ',2.5,'x',6,'mm')) % ADD A LINE
SGwriteMultipleSTL({SGbox},'','',SGpartslistastext(AParts)); % WRITE PARTS LIST
Copyright 2017-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
Last html export of this page out of FM database by TL: 2025-09-21