Hi Steve, OK I’ve installed the comtypes and adjusted the path to the Rhino folder.
Now I have the following code, but it looks like I’m missing something:
from comtypes.client import GetModule
from comtypes.client import CreateObject
name="Rhino5x64.Interface"
tlb = "C:\Program Files\Rhinoceros 5 (64-bit)\System\Rhino5.tlb"
tls = "C:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\RhinoScript.tlb"
IRhino = GetModule(tlb)
IRhinoScript = GetModule(tls)
Rhino = CreateObject(name)
RS = Rhino.QueryInterface(IRhino.IRhino5x64Interface).GetScriptObject()
rs = RS.QueryInterface(IRhinoScript.IRhinoScript)
rs.Print("Hello Rhino!")
Any hints what’s going on?
Thanks, Jess