Puybaret
Expert
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
|
|
Re: Unable to open file
|
Actually, if I was able to fix AeowynFraser's file and avoid it happens again in version 5.2, it's not by chance but because Mazoola's report gave me the hints to resolve this issue. Following this experience, here's a way to fix a buggy file by yourself: - make a copy of your sh3d file to be sure that you won't lose anything - change its .sh3d extension by .zip - unzip the file with default system tool - open the ContentDigests file found among all the unzipped files with a text editor - in that file, look for ".jpg" or ".png". If you find no occurrence, stop now, there's no space to save in your sh3d file (or not because of the current case) - for each occurrence of a ".jpg" or ".png" image, delete all the files found in the folder and parent folders of the referenced image, except in the unzipped folder itself and the image itself. For exemple, if you find jpg in a line "Name: 117/110/texture.jpg", remove all the files found in folder "117" except the sub folder "110", and all files found in "117/110" sub folder except the file "texture.jpg". - once done, delete the ContentDigests file (if you keep it, Sweet Home 3D will report an error when it checks the consistency of the opened sh3d file you'll rebuild) - zip the remaining files and folders together with the archive creation tool of the system (caution: the file Home and the files numberered 1, 2, 3, 4... should appear at the root of the zipped file) - change the .zip extension to .sh3d - voila! You've got a lighter file.
If required, I could program a small utility that automates these steps, but as I don't know how many people are annoyed by this issue, I don't know if it could worth it.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
|
[Feb 20, 2016, 9:42:00 PM]
|
|
[Link]
|
|