[python-win32] Some problems with instantiating a type library

steller s.teller at gmx.net
Fri Aug 14 20:33:21 CEST 2009


try this!

#the basic win32com interface generated by makepy.py
from rhinov4scripttypes import RhinoScript
import time
import win32com.client
#init rhino
Rhino = win32com.client.Dispatch("Rhino4.Application")
time.sleep(3)
Rhino.Visible = True
RS = Rhino.GetScriptObject
RS = RhinoScript(RS)
RS.AddLine((0,0,0), (1,1,1))

cu



More information about the python-win32 mailing list