Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.29 KB

File metadata and controls

54 lines (44 loc) · 1.29 KB

ExportSTL

Description

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

Parameters

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

Remarks

STL is a native file format to the stereolithography CAD software created by 3D Systems.

Examples

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')

Version

Availability: from Vectorworks 2016

Category