[pywin32-bugs] [ pywin32-Bugs-1596989 ] problem with Session.ModelObjects() ERwin COM API
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-11-15 13:35:30
|
Bugs item #1596989, was opened at 2006-11-15 16:35 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: Open 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1596989&group_id=78018 |