<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div>I ran makepy on the DesignCad 20 type library.</div><div><br></div><div>I get Type mismatch errors with the function GetPoints:</div><div><br></div><div>a subset of the class definition is:</div><div>"""</div><div>class IDcadEntity(DispatchBaseClass):<br>&nbsp;&nbsp;&nbsp; CLSID = IID('{B4D5DA6E-EDEB-4816-BD4C-88C04C119C24}')<br>&nbsp;&nbsp;&nbsp; coclass_clsid = IID('{4FCCD850-D360-458C-8FB1-61CB90A28137}')<br><br><br>&nbsp;&nbsp;&nbsp; def GetPoint(self, iIndex=defaultNamedNotOptArg, dX=pythoncom.Missing, dY=pythoncom.Missing, dZ=pythoncom.Missing):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return self._ApplyTypes_(13, 1, (11, 0), ((2, 1), (16389, 2), (16389, 2), (16389, 2)), u'GetPoint', None,iIndex<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; , dX, dY, dZ)<br><br>&nbsp;&nbsp;&nbsp; def GetPoints(self,
 iStartIndex=defaultNamedNotOptArg, iCount=defaultNamedNotOptArg, pXYZArray=defaultNamedNotOptArg):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return self._ApplyTypes_(15, 1, (2, 0), ((2, 1), (2, 1), (24581, 3)), u'GetPoints', None,iStartIndex<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; , iCount, pXYZArray)</div><div><br></div><div>"""</div><div>I tried Ent.GetPoints(1,1, d)</div><div>where d is a list of 3 floats,</div><div><br></div><div>I get the following errors:</div><div>Traceback (most recent call last):<br>&nbsp; File "&lt;interactive input&gt;", line 1, in &lt;module&gt;<br>&nbsp; File "C:\Python27\lib\site-packages\win32com\gen_py\DD0F69E1-1E0D-4064-94FA-2ED7ADC72C5Dx0x20x0.py", line 4631, in GetPoints<br>&nbsp;&nbsp;&nbsp; , iCount, pXYZArray)<br>&nbsp; File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 456, in _ApplyTypes_<br>&nbsp;&nbsp;&nbsp; self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes,
 *args),<br>com_error: (-2147352571, 'Type mismatch.', None, 3)</div><div><br></div><div>Please advise</div><div>thanks</div><div>Rand Batchelder<br></div></div></body></html>