I’m trying to reopen the same file via Python - it’s an autocad drawing that Rhino opens to use it as a base for generated geometry. However, I can’t seem to get document’s path or name without saving it somewhere first.
I hope that it’s possible, because when opening any file via Rhino it’s file name shows in Rhino window’s title, so I hope that it’s name/directory is already stored.
import rhinoscriptsyntax as rs
document_location = rs.DocumentPath() + rs.DocumentName()
rs.Command("Open No " + chr(34) + document_location + chr(34))