Em Dom, 2009-01-04 às 07:21 +0000, Kelie escreveu: > Ronan, > > I'm not sure what the answer is to your question. But I'm curious why you're > trying to use Python to execute the "measure" command. Do you know any > AutoLisp/VisualLisp or VBA? Both of them would be much easier to use in this > case. What I'm finding is Python (win32com or comtypes) has its usage in > automating AutoCAD, but in a (very) limited way, due to the much slower speed > than AutoLisp/VisualLisp and VBA, let alone other .NET languages. I mentioned > the speed issue in one of the earlier thread and my understanding is there > isn't > much to be done due to the out-of-process COM access nature. > Well, actually I like Python a lot, specially since I use Linux.
The thing is I'm actually teaching my sister how to program, and since she knows nothing about programming, except for Excel commands, I thought Python was the best to start with, since it's powerful and easy. Anyway, she's doing her automation stuff through a lot of Excel copy-and-pasting, so speed shouldn't be much of an issue. Also, she's taking Engineering classes, so I thought having Numpy/Scipy would help her both in work as in her studies. Another thing is that Python is a general programming language, so it's possible to use it do integrate AutoCAD with external stuff, like Excel files, GUIs and so on. As for the "measure" command, it's because we were trying to automate some things she does repeatedly with the measure command, but I'd like to make the user select the desired object only once. There's no COM equivalent to the measure command. To be fair, I'm not familiar with Lisp nor .NET stuff, and it's been almost 10 years since I last used VB. OTOH, maybe IronPython could help, since it's also .NET. For all that, it's important to note that since she intends to automate her own stuff at work, a cheap/free license is required and Python meets that need. Thanks for any help, Ronan Paixão ------------------------------------------------------------------------------ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users