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.
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,