Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

Is there a way to get the list of all running rhino instances from an external program?

$
0
0

@roberto wrote:

Hi to everyone,

i want the list of all opened documents (.3dm files) .

I use this code (C#) to get the path of opened document:

string rhinoId = "Rhino5x64.Interface";
Rhino5x64.IRhino5x64Interface rhino;
System.Type type = System.Type.GetTypeFromProgID(rhinoId);
rhino = (Rhino5x64.IRhino5x64Interface )System.Activator.CreateInstance(type);
dynamic scrObj = rhino.GetScriptObject();
string FileName = scrObj.DocumentPath + scrObj.DocumentName;

But, this code return only the first document opened.

Is there a way to get the list of all running Rhino instances and all opened files?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles