Thanks for the suggestion. I tried clearing the gen directory in site-packages/comtypes and no dice. The code in question that I am using is the sample code from the web site but I'll post it here again just for clarity:
app = comtypes.client.GetActiveObject("AutoCAD.Application") modelSpace = app.ActiveDocument.ModelSpace This is using AutoCAD 2004. I don't have a copy of AutoCAD 2008 to try currently. Do you have a copy of AutoCAD 2004 that you could try? Thanks for your help so far. Anthony On Wed, Aug 20, 2008 at 10:20 AM, Ed Blake <[EMAIL PROTECTED]> wrote: > > I've been using comtypes 0.3.3 because of issues with recent versions (and > Autocad/Microstation) and because comtypes development has been fairly rapid > (waiting for that next cool version). Just now I installed 0.5.1 (and let it > empty my comtypes wrapper cache) and messed with Autocad a little. > Everything seems to work fine here using Autocad 2008 (civil 3d pretending to > be land-desktop configured to act like plain old Autocad ;) > > My sugestion is to delete the contents of your gen directory in > site-packages\comtypes and regenerate. If that doesn't work post some code > and we'll see if you've done anything strange! > > Ed Blake > > --- On Tue, 8/19/08, Anthony Tuininga <[EMAIL PROTECTED]> wrote: > >> From: Anthony Tuininga <[EMAIL PROTECTED]> >> Subject: [comtypes-users] No such interface supported? >> To: comtypes-users@lists.sourceforge.net >> Date: Tuesday, August 19, 2008, 2:15 PM >> Hi, >> >> I have successfully used pywin32 for a while now for doing >> COM related >> stuff but ran into a problem with it using AutoCAD to >> create points >> and lines as appears to be well known given the >> documentation for >> comtypes. So I downloaded comtypes and installed it (0.5.1 >> and later >> on SVN trunk) but immediately ran into a problem running >> the sample >> code. Specifically, the instance is created fine and >> app.ActiveDocument returns a value but >> app.ActiveDocument.ModelSpace >> yields "no such interface supported" and so does >> anything else on >> app.ActiveDocument from what I can tell. Is there something >> obvious >> that I am missing? A Google search doesn't suggest as >> much but maybe >> I'm using the wrong terms. :-) Any help appreciated. >> Thanks. >> >> Anthony >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge >> Build the coolest Linux based applications with Moblin SDK >> & win great prizes >> Grand prize is a trip for two to an Open Source event >> anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> comtypes-users mailing list >> comtypes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/comtypes-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > comtypes-users mailing list > comtypes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/comtypes-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users