I am trying to use COM to open a selected 3dm file in an existing Rhino instance. Is there any way to filter the list of existing Rhino processes? I’m trying to get a Rhino process without any file opened (e.g. titled “Untitled”).
I realize that this is Cpython, but I didn’t look yet for a way (or if it’s possible at all) to create COM objects from ironpython.
import win32com.client as win32
a = win32.Dispatch("Rhino.Interface")
a.RunScript("Open" + chr(34) + "file-path.3dm" + chr(34))
EDIT: documentation says no:
7 posts - 3 participants
