Error while exporting a model node as stl file

Luca
Fri, 21 Apr 2023 13:19:59 +0000
Support

Hello everyone,

every time I try to export a model node (simple or complex) as stl file by using the GUI, I get the following error:

Error: ERROR: In D:\D\S\S-0-build\VTK\IO\Geometry\vtkSTLWriter.cxx, line 248
vtkSTLWriter (000001870E471130): Couldn’t open file: C:/Users/user/Desktop/New folder/bone.stl Reason: Permission denied
Error: Saving failed with all writers found for file ‘C:/Users/user/Desktop/New folder/bone.stl’ of type ‘ModelFile’.
Error: Error encountered while exporting liver.
Error: ERROR: In D:\D\S\S-0-build\VTK\IO\Geometry\vtkSTLWriter.cxx, line 248
vtkSTLWriter (000001870E471130): Couldn’t open file: C:/Users/user/Desktop/New folder/bone.stl Reason: Permission denied

However, if I save the model node by code using slicer.util.saveNode() the Python Interactor, it works.

Can someone explain me what is happening and why? It is strange that it searches in D: because my pc has got just one disk (C:). Did anything go wrong during Slicer installation? Any other hints?

Thanks in advance!

5 posts - 2 participants