Bugs item #1596989, was opened at 2006-11-16 00:35
Message generated for change (Settings changed) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1596989&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: com
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Denis Komarov (denis_komarov)
Assigned to: Nobody/Anonymous (nobody)
Summary: problem with Session.ModelObjects() ERwin COM API
Initial Comment:
I'm hoping this is a coding error on my part, but I've
encountered a problem with interface that I cannot
understand. I try to use pywin32 (build 210 for Python 2.4) on WinXP for access to AllFusion ERwin Data Modeler 7.1 (Computer Associates) via ERwin COM API:
------------------------- begin erwin.py
import win32com.client
ERwin = win32com.client.dynamic.Dispatch('AllFusionERwin.SCAPI')
PersistenceUnit = ERwin.PersistenceUnits.Add(r'D:\s\model.erwin')
Session = ERwin.Sessions.Add()
ModelSet = PersistenceUnit.ModelSet()
Session.Open(ModelSet)
ModelObjects = Session.ModelObjects()
------------------------- end erwin.py
Traceback (most recent call last):
File "D:\Project\erwin\src\root\nested\erwin.py", line 7, in ?
ModelObjects = Session.ModelObjects()
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: (-2147352562, '\xcd\xe5\xe4\xee\xef\xf3\xf1\xf2\xe8\xec\xee\xe5 \xf7\xe8\xf1\xeb\xee \xef\xe0\xf0\xe0\xec\xe5\xf2\xf0\xee\xe2.', None, None)
Any insight into this problem would be most appreciated.
Regards,
Denis V. Komarov
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2006-11-16 08:36
Message:
Logged In: YES
user_id=14198
Originator: NO
I've no idea why the bizarre string was displayed, but the error message
for -2147352562 should be:
>>> pythoncom.GetScodeString(-2147352562)
'Invalid number of parameters.'
Which may give you a clue. Otherwise, I suggest you try asking on the
pyt...@py... mailing list where more people will see it.
Cheers
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1596989&group_id=78018
|