Tell running Rhino application to execute script

Hi Dale, unfortunately not.

I’ve now solved it by creating an ironpython script which i can run with ipy.exe using the clsid 4AD5D33E-7576-4C71-BEDC-E174E5DEF0DA instead of Rhino5x64.Interface:

import System
guid = System.Guid('4AD5D33E-7576-4C71-BEDC-E174E5DEF0DA')
xType = System.Type.GetTypeFromCLSID(guid)
obj = System.Activator.CreateInstance(xType)

This works when Rhino5x64 is open. For Rhino4, Rhino5 x86 and Rhino 6 it seems to accept a ProgID:

xType = System.Type.GetTypeFromProgID('Rhino4.Interface')
xType = System.Type.GetTypeFromProgID('Rhino5.Interface')
xType = System.Type.GetTypeFromProgID('Rhino.Interface.6')

…but not Rhino 5x64. Strange.

_
c.

1 Like