hi there. i’ve been working on a pretty complex grasshopper patch and generated quite a few versions of the associated Rhino file as well as multiple versions of the GH patch. I took a break from this project for a couple of weeks and now i can’t remember which gh file belongs to which 3dm file. I was kind of hoping that the respective GH files would open automatically with the 3dm file but i think that option doesn’t exist ?
Is there a way to find out which 3dm file belongs to which gh file ? Or a way to auto load a GH file when opening a 3dm file ?
Hi Chris -
3dm file don’t “belong” to any gh file, no.
If the definition requires very specific geometry input, you’d have to internalize that geometry in the Grasshopper file.
-wim
As wim said, .3dm and .gh are separate files.
But if you did “link” a rhino geometry inside the .gh document (usin the GH terminology is “referencing”), it will appear as the orange parameter here, giving the message “i did not found the old geometry in the current .3dm file”
So, if you open the correct rhino file, it should then turn white/gray and work as last time.
Do not overwrite the data inside any orange parameter until you find the correct geometry to reference…
hey thx for helping me out. i understand how referencing geo works … but in the heat of the battle i forgot which file i was working on with which patch.
so i guess trial and error is the only way …
I think this will do what you’re looking for:
find_referenced_geo.gh (8.1 KB)
I put this together fairly quickly, so I’m sure it could stand some optimization and clean-up. This may take some time to run you are searching a directory that holds a lot of .3dm files or if your files are very complex. Took ~25 sec on my system to scan through 446 files.
-Kevin
oh wow @kev.r that’s so cool, will give it a try and report back
ok so i just tried this and it doesn’t seem to work, with or without the path panel connected it gives me this error:
I am seeing that here too, it was working for me before.
See if this works now.
find_referenced_geo.gh (8.1 KB)
Edit: I was trying to open files with just the filename (no path), not sure why it was working before - should be fixed now. Tried here on MacOS and Windows, both work for me.
-Kevin
it works this is so amazing, i have so many old files i built when i was learning GH and most of them were unusable since i forgot in which rhino files i used them. you totally made my day @kev.r
thx again and have a lovely weekend !!!