Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Can Rhino.Interface (COM) filter when running multiple Rhino processes?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles