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.
------------------------------------------------------------------------------ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users