Hi everyone,
Is there a rhinocommon method (python) to get the current working directory for the *.3dm file (not the *.py file)?
Thanks,
Vincent
Hi everyone,
Is there a rhinocommon method (python) to get the current working directory for the *.3dm file (not the *.py file)?
Thanks,
Vincent
https://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-WorkingFolder
if you are using rhinoscript syntax:
rs.WorkingFolder()
of if you are using Rhino:
Rhino.RhinoDoc.ActiveDoc.Path
Thank you @christopher.ho !
I find that os.path.dirname(Rhino.RhinoDoc.ActiveDoc.Path)
works well for me.
Vincent