I’m trying to have a component output the filepath of the currently open Rhino file in as painless of a way as possible.
rs.DocumentPath() in python but have found that it doesn’t update when a new file is opened or when the whole definition is recomputed.
System.IO.Path.GetDirectoryName(RhinoDocument.Path); in C# works, but the definition has to be recomputed and I’m trying to keep it super simple for my coworkers who don’t use Grasshopper much.
Is there a way to get the current file path that will always be accurate without having to recompute?
rhino path.gh (5.4 KB)