pierre cutellic wrote: > Thanks Tim, its becoming better > > I'm doing the following: > > import win32com.client, time > from RSInterface import RhinoScript > time.sleep(2) > > Rhino.Visible = True > > RS = Rhino.GetScriptObject() > RS = RS.RhinoScript > > But it's returning the following: > > File "C:\Python24\lib\site-packages\win32com\client\dynamic.py", line > 172, in __call__ > return > self._get_good_object_(self._oleobj_.Invoke(*allArgs),self._olerepr_.defaultDispatchName,None) > pywintypes.com_error: (-2147352573, 'Membre introuvable.', None, None) > > It's a bit weird and incomprehensible for a new user like me. > Any idea?
-2148352583 is 0x80020003, which is DISP_E_MEMBERNOTFOUND (which is probably what "Membre introuvable" means...). Where did you read that you need that second step? Once you call GetScriptObject, you should HAVE the script engine. You should be able to call RS.Command or whatever you need. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
