Edit block macro

Hi All,
I need to create a simple macro button to apply Box Mapping to blocks, editing them in place.
The commands are very simple ,but I’m not able to do the macro:
_BlockEdit
_ApplyBoxMapping
0,0,0
_Enter
300
_Enter
300
_Enter
300
_Enter
_Enter
_Enter

but I can’t select the block to edit and other script mistakes of course.

Someone can help me?
Thanks
Roy

Hi Roy - you need some Pauses in the macro for selection and other input -

https://docs.mcneel.com/rhino/6/help/en-us/index.htm#information/rhinoscripting.htm

-Pascal

HI Pascal,
thank you for your reply.

Now it work:

_BlockEdit
_ApplyBoxMapping
_Pause
0,0,0
300
300
300
_Enter
1
_EnterEnd

but i can’t exit from the command. What’s wrong?
Roy

Yeah… BlockEdit is a sort of mode once it is under way - Enter does not end it. We may need a new command for that. I’ll check with the developer.

-Pascal