Grasshopper

algorithmic modeling for Rhino

Hi,

I've just installed 08.0010 and I can't openn files generated in 08.0004. Is this a known problem?

 

I get an error message saying: Root element is missing

 

I really need to open those old files for my project. I dont have the 08.0004 installation file any more. Is it possible to download it? Or is there any other way of opening my old 08.0004 files in 08.0010?

 

Adivice anyone, please.

 

Oyvind

Views: 432

Attachments:

Replies to This Discussion

Hi Oyvind,

 

the file is completely empty. You won't be able to open it with any version of Grasshopper since there's nothing to open. I sincerely hope you have backups of this. Did you save these files directly to a USB stick or network drive? That might explain why you got bogus files.

 

--

David Rutten

david@mcneel.com

Vienna Airport, Austria

To elaborate a bit, this is how Grasshopper saves files, in order to try and provide as much fidelity as possible:

 

1) The document is serialized to an xml string or a byte array (the latter in the case of gh files) in memory.

2) If [1] was successful, and there's no file on the disk yet, then I write the data directly in place. Go to step [5].

3) If [1] was successful, and there already is a file on the disk with the same name, I write the ghx/gh data to the windows Temp directory first.

4) If [3] was successful, then I delete the original file and move the temp file into the correct location. Go to step [5]

5) If the file write was successful, print a success message in the Grasshopper status bar, otherwise paint an error message.

 

From the above logic it follows that it can go wrong in 2 places. Either the file write actually failed (empty file) but Windows insists everything went peachy, I'll overwrite a valid file with an invalid one. Or the file copy fails and Windows lies about it.

 

I'd like to know exactly what happened to this file so I can beef up the fidelity even further, and I'd especially like to know if you can repeat it.

 

--

David Rutten

david@mcneel.com

Vienna Airport, Austria

Hi David,

 

Thank you for your reply.

 

I found the error source and it was not related to Grasshopper: You set me on track mentioning that there was nothing on the file. I then relized it was only 1 kb.

 

Long story short; the file was at some point moved back and fourth on a external HD, this must have been when the error occured. I starting to believe there is somthing wrong with the HD. I found an older version of my file an other media that I can use.

 

Problem solved!

 

Sorry for the inconvenience.

 

Again, thanks for you help!

Sure, glad it worked out. I could probably add more informative feedback when the open process fails. These problems crop up every now and again, and whenever it was resolved it turned out to be because of external storage (people yank out the USB stick during a file-write, that sort of thing).

 

--

David Rutten

david@mcneel.com

Stockholm Airport, Sweden

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service