Re: [comtypes-users] Problem with AutoCAD

2009-01-06 Thread Ronan Paixão
Thanks a lot for your help! It certainly was crucial to kickstart my script. Specially since I didn't know I could send Lisp commands with SendCommand(). Here's what I'm doing: Em Seg, 2009-01-05 às 10:15 +, Kelie escreveu: Ronan, Thanks for taking time to explain what you're after.

Re: [comtypes-users] Problem with AutoCAD

2009-01-06 Thread Kelie
Ronan, There is a cast function. But the syntax isn't much shorter. import comtypes import comtypes.gen.AutoCAD as ACAD app = comtypes.client.GetActiveObject(AutoCAD.Application) obj = app.ActiveDocument.ModelSpace(1) #Assume this obj is a block block = comtypes.cast(obj,