Path to rhino file location

Help me find a solution in C#. I just need the path to the folder where the rhinoceros document is saved
Getting the file location path.gh (7.8 KB)

If python would be ok too you could use rs.DocumentPath()

Rhino - RhinoScriptSyntax (rhino3d.com)

1 Like

изображение
Thanks, but my cluster is faster.

Weird. What’s in your python script?

You can use this same method in C#, it really should take any time:


240830_GetRhinoDocPath_00.gh (1.7 KB)


I just need the path to the folder.

Here’s a Pythonic solution:


240830_GetRhinoDocPath_01.gh (3.4 KB)

1 Like

Oh, thank you very much Anders
I wonder if C# will make it faster?

1 Like

How slow does it compute on your system? The profiler doesn’t even kick in here:


240830_GetRhinoDocPath_02.gh (4.2 KB)

1 Like