To display the dialog:
Click Tools > Options > System Options > Import > STL/OBJ/OFF/PLY/PLY2 in File Format.
- or -
Setting
Get/Set Methods
Return Value or <Value> or <OnFlag>
Comment
Import as - Graphics body
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlModelType) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlModelType, swImportStlVrmlModelType_e.swImportStlVrmlModelType_Graphics)
swImportStlVrmlModelType_e.swImportStlVrmlModelType_Graphics
Import as - Solid body
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlModelType) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlModelType, swImportStlVrmlModelType_e.swImportStlVrmlModelType_Solid)
swImportStlVrmlModelType_e.swImportStlVrmlModelType_Solid
Import as - Surface body
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlModelType) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlModelType, swImportStlVrmlModelType_e.swImportStlVrmlModelType_Surface)
swImportStlVrmlModelType_e.swImportStlVrmlModelType_Surface
Mesh body options - Create mesh bodies bounded by single faces
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swVrmlStlImportAsPSMesh)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swVrmlStlImportAsPSMesh, <OnFlag>)
Boolean value
Valid only when importing as Solid body or Surface body, specifies whether to create mesh bodies bounded by single faces
Mesh body options - Group facets into faces
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swIVrmlStlImportSegmented)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swIVrmlStlImportSegmented, <OnFlag>)
Valid only if Create mesh bodies bounded by single faces is selected, specified whether to group facets into faces
Unit
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlUnits) ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportStlVrmlUnits, swLengthUnit_e.<Value>)
Valid options from swLengthUnit_e:
0 = swMM (millimeters)
1 = swCM (centimeters)
2 = swMETER
3 = swINCHES
4 = swFEET
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
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
Print Topic
Select the scope of content to print:
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.
Web Help Content Version: API Help (English only) 2024 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.