Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to export a part as an STL file.
Solidworks
partDoc.SaveAs3("[1]", 0, 2)
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong file extension like .3mf or .sldprt
Forgetting to specify the full file path
✗ Incorrect
The SaveAs3 method exports the part to the specified STL file path.
2fill in blank
mediumComplete the code to export a part as a 3MF file.
Solidworks
partDoc.SaveAs3("[1]", 0, 2)
Attempts:
3 left
💡 Hint
Common Mistakes
Using .stl extension instead of .3mf
Not providing the full file path
✗ Incorrect
To export as 3MF, the file path must end with .3mf.
3fill in blank
hardFix the error in the code to export a part as STL with binary format.
Solidworks
partDoc.SaveAs3("C:\Models\part.stl", [1], 2)
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 which exports ASCII STL
Using unsupported format codes
✗ Incorrect
The second parameter specifies the export format: 0 means binary STL.
4fill in blank
hardFill both blanks to export a part as 3MF with default options.
Solidworks
partDoc.SaveAs3("[1]", [2], 2)
Attempts:
3 left
💡 Hint
Common Mistakes
Using STL file path for 3MF export
Using wrong format code
✗ Incorrect
Use the 3MF file path and 0 for default export options.
5fill in blank
hardFill all three blanks to export a part as STL ASCII with custom options.
Solidworks
partDoc.SaveAs3("[1]", [2], [3])
Attempts:
3 left
💡 Hint
Common Mistakes
Using binary format code
0 instead of ASCII 1Using wrong file extension
✗ Incorrect
Use the STL ASCII file path, 1 for ASCII format, and 2 for custom options.
