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

1 Like

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

Hi Pascal,

Was there a command made for closing blocks trough macro’s? Personaly I use macro’s quite alot and i always run into the problem that i cant close the block trough the macro.
I have tried _BlockEditApplyInPlaceEditItemChanges (the command that closes the block if you press Ok in the popup). But that doesnt work.

Martijn

Is there a way to close block edit from macro?

1 Like

Hi Ivan -

No. Once you hit a dialog box, you are out of macro-land.
Making BlockEdit macro’able is on the list: RH-34493 BlockEditOk and BlockEditClose desired for macros and scripts
-wim

1 Like