[python-win32] SolidWorks & pywin32?
Samu Niveri
samu.niveri at hotmail.com
Mon Nov 8 00:23:10 CET 2010
Hello,
I have created small app for SWx and encountered a minor problem with it. When trying to read properties from SWx-files using API-command: CustomPropertyManager.Get2(ByVal FieldName As String, ByRef ValOut As String, ByRef ReesolvedValOut As String) I get results:
CustPropMgr.Get2(CustProperty, ValOut, ResValOut)
File "<COMObject <unknown>>", line 2, in Get2
pywintypes.com_error: (-2147352571, 'Type mismatch.', None, 2)
Definitions in makepy generated file are:
def Get2(self, FieldName=defaultNamedNotOptArg, ValOut=pythoncom.Missing, ReesolvedValOut=pythoncom.Missing):
"""Get a custom property"""
return self._ApplyTypes_(10, 1, (24, 0), ((8, 1), (16392, 2), (16392, 2)), 'Get2', None,FieldName
, ValOut, ReesolvedValOut)
Is there any workarounds for this? It seemed that someone has fixed similar issues with AutoCAD & pywin, but I did not understand where he/she was able to pull out the fixes.
-Samu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20101108/be3837d9/attachment.html>
More information about the python-win32
mailing list