Hide Table of Contents

File > Save As > Save as type > STL > Options > STL

Setting

Get/Set Methods

Return Value
or
<Value>
or
<OnFlag>

Comment

Output as - Binary

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLBinaryFormat)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLBinaryFormat, <OnFlag>)

True

 

Output as - ASCII

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLBinaryFormat)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLBinaryFormat, <OnFlag>)

False

 

Output - Unit

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swExportStlUnits)

ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swExportStlUnits, <Value>)

Valid options as defined in swLengthUnit_e:

  • 0 = swMM (millimeters)   

  • 1 = swCM (centimeters)  

  • 2 = swMETER

  • 3 = swINCHES

  • 4 = swFEET

 

Resolution -Coarse

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSTLQuality)

ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSTLQuality, swSTLQuality_e.swSTLQuality_Coarse)

swSTLQuality_e.swSTLQuality_Coarse

See swSTLQuality_e for valid options

Resolution - Fine

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSTLQuality)

ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSTLQuality, swSTLQuality_e.swSTLQuality_Fine)

swSTLQuality_e.swSTLQuality_Fine)

See swSTLQuality_e for valid options

Resolution - Custom

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSTLQuality)

ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swSTLQuality, swSTLQuality_e.swSTLQuality_Custom)

swSTLQuality_e.swSTLQuality_Custom

See swSTLQuality_e for valid options

Resolution - Deviation  Tolerance

ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swSTLDeviation)

ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swSTLDeviation, <Value>)

Double value

Specifies deviation tolerance, which controls whole-part tessellation; lower numbers generate files with greater whole-part accuracy

Resolution - Angle Tolerance

ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swSTLAngleTolerance)

ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swSTLAngleTolerance, <Value>)

Double value

Specifies angle tolerance, which controls smaller detail tessellation; lower numbers generate files with greater small-detail accuracy, but those files take longer to generate

Resolution - Show STL info before file saving

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLShowInfoOnSave)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLShowInfoOnSave, <OnFlag>)

Boolean value

Specifies whether to show STL information before saving the file

Resolution - Preview

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLPreview)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLPreview, <OnFlag>)

Boolean value

Specifies whether faceted model preview is displayed in the graphics area

Do not translate STL output data to positive space

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLDontTranslateToPositive)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLDontTranslateToPositive, <OnFlag>)

Boolean value

Specifies whether exported parts maintain original position in global space, relative to origin

Save all components of an assembly in a single file

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLComponentsIntoOneFile)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLComponentsIntoOneFile, <OnFlag>)

Boolean value

Specifies whether to save the assembly and its components in single .stl file

Check for interferences

ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLCheckForInterference)

ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e, swSTLCheckForInterference, <OnFlag>)

Boolean value

Specifies whether to check for interference prior to saving assembly document; swUserPreferenceToggle_e.swSTLComponentsIntoOneFile must be set to true

Output coordinate system

IModelDocExtension::GetUserPreferenceString(swUserPreferenceString_e.swFileSaveAsCoordinateSystem, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceString(swUserPreferenceString_e.swFileSaveAsCoordinateSystem, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

String value

Contains the name of the transform coordinate system; an empty string signifies that the  default coordinate system that does not require a transform; coordinate settings are not saved with the document; they must be selected at export time

 



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   File > Save As > Save as type > STL > Options > STL
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.