Yes you can. That is an advantage of comtypes. Since I don't know what "circle" variable contains I would suggest you also to try.
hatch.AddOterLoop(array.array('u',circle[0])), where I guess that 'u' defines an object data type. You can also try, hatch.AddOterLoop(circle[0]) I have never used AutoCad so I am just guessing. Pleas show what variable "circle" contains. Alkin On 27 Apr 2012, at 08:25, niki <n...@vintech.bg> wrote: > On 27.04.2012 06:59, 孔欣驰 wrote: >> Thanks for your help,This is page is the VBA method description from >> AutoCAD 2008 developer Help >> >> http://www.kxcad.net/autodesk/autocad/AutoCAD_ActiveX_and_VBA_Reference/idh_appendouterloop.htm >> >> the circle is a object in AutoCAD,In fact,this problem also appear in every >> method which arguments contain array of object. >> >> so, I want know when i use comtypes+AutoCAD, how can i send a array of >> autocad object to autocad method. > > Wild guess: can you use safearray here? > > HTH > Niki > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > comtypes-users mailing list > comtypes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/comtypes-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users