# MakeModelEffect Error. The file cannot be saved.

**URL:** https://discourse.slicer.org/t/makemodeleffect-error-the-file-cannot-be-saved/7957
**Category:** Support
**Created:** [August 9, 2019, 2:39am UTC](https://discourse.slicer.org/t/makemodeleffect-error-the-file-cannot-be-saved/7957 "2019-08-09T02:39:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![11127](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/11127/32/4383_2.png) [@11127](https://discourse.slicer.org/u/11127)
#### Post date: [August 9, 2019, 2:39am UTC](https://discourse.slicer.org/t/makemodeleffect-error-the-file-cannot-be-saved/7957/1 "2019-08-09T02:39:40Z")

</div>

Operating system: window10  
Slicer version:4.10.2  
Expected behavior: Save the cropped as a STL file.  
Actual behavior: Fail in the last step.(Model Maker)

Hello.  
I want to use this program to extract the ears from the CT as a STL file.  
But I keep getting errors in the last step.  
Here’s what I did.

1.Load Dicom data  
2.Select Modules -\> Volume Rendering  
3.Select Modules -\>Crop Volume(Crop only necessary)  
4.Select Modules -\>Editor  
ThresholdEffect(Select right external ear)  
MakeModelEffect

But, failed to apply last step continuously.  
This is error massage.

Model Maker standard error:

Model scene file doesn’t exist yet: C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_AAAAACDCEECDBBHA.mrml  
Error: no model hierarchy node at ID “vtkMRMLModelHierarchyNode1”, creating one  
ERROR: cannot open input volume file C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLLabelMapVolumeNodeB.nrrd

Model Maker completed with errors

Model Maker command line: 

C:/Program Files/Slicer 4.10.2/bin/…/lib/Slicer-4.10/cli-modules/ModelMaker.exe --color C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLColorTableNodeFileGenericAnatomyColors.txt.ctbl --modelSceneFile C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_AAAAACDCEECDDDHA.mrml#vtkMRMLModelHierarchyNode1 --name right middle ear test --labels 136 --start -1 --end -1 --skipUnNamed --smooth 10 --filtertype Sinc --decimate 0.25 --splitnormals --pointnormals --pad C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLLabelMapVolumeNodeB.nrrd

ERROR writing file C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLLabelMapVolumeNodeB.nrrd

Write: Could not open file C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_AAAAACDCEECDBBHA.mrml

itk::ExceptionObject (00000062F26FB830) Location: "unknown" File: D:\D\S\Slicer-4102-build\ITK\Modules\IO\NRRD\src\itkNrrdImageIO.cxx Line: 1123 Description: itk::ERROR: NrrdImageIO(0000023C29B78800): Write: Error writing C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLLabelMapVolumeNodeB.nrrd: [nrrd] nrrdSave: couldn't fopen("C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLLabelMapVolumeNodeB.nrrd","wb"): Invalid argument WriteData: unable to open file C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLColorTableNodeFileGenericAnatomyColors.txt.ctbl for writing

ERROR writing file C:/Users/??/AppData/Local/Temp/Slicer/DEGI\_vtkMRMLColorTableNodeFileGenericAnatomyColors.txt.ctbl

UpdateFileList: Failed to create directoryC:/Users/??/AppData/Local/Temp/Slicer/TempWriteDEGI\_vtkMRMLLabelMapVolumeNodeB

Found CommandLine Module, target is C:/Program Files/Slicer 4.10.2/bin/../lib/Slicer-4.10/cli-modules/ModelMaker.exe ModuleType: CommandLineModule

What should i do? Please help me.

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [August 9, 2019, 8:55pm UTC](https://discourse.slicer.org/t/makemodeleffect-error-the-file-cannot-be-saved/7957/2 "2019-08-09T20:55:37Z")

</div>

Hi @11127 -

It looks like your login name is not ascii (and [alas Slicer can’t handle that](https://discourse.slicer.org/t/special-characters/5398)). You should be able to manually change the temp directory in the Edit-\>Application Settings dialog to someplace with only English characters.

Also, you can update to using the [Segment Editor](https://www.slicer.org/wiki/Documentation/4.10/Training#Segmentation) and you’ll have a better set of tools and more STL export options.

Best,  
Steve
