Hi Kent,

Odd, it either hangs in the "was not selected loop" or
throws an error (the macro window pops up).

that is really strange ... well you could remove this loop I just added it to be sure I selected the right thing :-)

I changed your code slightly, but I don't see that my
changes are the problem. You can see the method below.

your oDocument seems to be an XModel, but for the "executeDispatch" method you need an XFrame. So the first argument in this method in your changed code should be oDocument.currentController.Frame

Pity there is no parameter for this, or another way. I
have a bit of bad feeling regarding performance and
stability about sending a macro to get those lines on
the right layer. I suppose I could try connected
lines.

Maybe someone who know more about the dispatch API can tell you if you can pass your shape as argument.

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to