[python-win32] SolidWorks & pywin32?

Samu Niveri samu.niveri at hotmail.com
Tue Nov 9 15:00:28 CET 2010


> Samu Niveri wrote:
> >
> > 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)
> 
> Those are output parameters.  You probably want this:
>     (ValOut, ResValOut) = CustPropMgr.Get2(CustProperty)
> 

Thanks Tim,

I was also using python 3.1 so actually nothing really worked -> changing back to 2.7 fixed all my issues.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20101109/93b2b30c/attachment.html>


More information about the python-win32 mailing list