Export the objects into a STL file.
FUNCTION ExportSTL(
filePath : STRING;
exportBinary : BOOLEAN;
percentTess : REAL;
exportObjectsOptions : INTEGER): BOOLEAN;def vs.ExportSTL(filePath, exportBinary, percentTess, exportObjectsOptions):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| filePath | STRING | Output file path. |
| exportBinary | BOOLEAN | binary or ASCII output |
| percentTess | REAL | tessellation resolution -- from 0 to 100 0 -- low, 100 --high |
| exportObjectsOptions | INTEGER | 0 -- export visilble objects selected 1 -- export visible objects in activeLayer 2 -- export visible objects in all Layer |
STL is a native file format to the stereolithography CAD software created by 3D Systems.
resultOK := ExportSTL('file.txt', TRUE, 1.0, 1);import vs
# Export the objects into a STL file.
filePath = 'C:/Temp'
exportBinary = True
percentTess = 1.0
exportObjectsOptions = 1
ok = vs.ExportSTL(filePath, exportBinary, percentTess, exportObjectsOptions)
if ok:
vs.Message('ExportSTL succeeded')
else:
vs.Message('ExportSTL failed')Availability: from Vectorworks 2016