History issue in the WIP

History button [on the bottom bar] turns itself off after every command .
I have record and update on… but still it goes off after every command, why? is this by design or a bug?

now I have to remember to click it on before every step, and when I forget I loos the history link and need to redo my steps. Very very frustrating.
What am I doing wrong? in the past, when history was on, it stayed on…

thanks a lot
akash

hi @Akash is this still an issue for you? I cannot repeat it here. What I do know is that this button behaves differently when you modify its state during a command.
If the button is off and you start a command, then turn on history, it will turn off after the command has ended. If you have no commands running, and set Record History to “Always Record History” (right click the button) it stays on.

hi
I’ll check.
I put it on [before that post]. from the history command.
Good to know about the right click at the button in the status bar … we didn’t have that option in the old Mac UI so it is new for me.

When running _History, the “Record” checkbox should do the same as checking “Always Record History”

How can I then script one-shot history recording (the same behavior as clicking the “Record History” button on the status bar) without enabling “always record history”?

you can use the hash symbol for this. See also Rhino scripting | Rhino 3-D modeling

I do no want to hard-code each and every command with a #. When clicking “Record History” on the status-bar, i can then execute whatever command i like, and afterwards the “Record History” automatically turns off. Is is not possible to enable this behavior through a command/script (like an option called “One Shot History” in the _History command)?

@AMG in that case, maybe this:

-_History record=yes Enter
#your command here
-_History record=no Enter
  1. Click “Record History” on the status bar.
  2. Execute any command that is history-enabled.
  3. Observe that the “Record History” automatically gets disabled afterwards.

I want to be able to perform step 1 without having to explicitly click on the button located on the status bar, but rather use a macro like _History _OneShot=Yes. The code for doing this clearly exists, because that is how it works when using the status bar.

I don’t think this is currently possible. It needs to work different though than clicking the button in the statusbar, since that only works as a nested action, and you want it to work before firing a command.
Let me know if this description is what you are after:
RH-83797 One shot history enable/disable

1 Like

Yes perfect, thank you :smiley:

I see that the # does not play nicely with aliases.

  1. Assing an alias with a history-enabled command, like ExtrudeCrv.
  2. Prefix the alias from step 1 with # and run the command.
  3. Observe that no history was recorded after doing step 2.

got that, thanks
RH-83798 One Shot history doesn’t work with Aliases

1 Like

Hi @Gijs,

I tested the “One Shot Recording” feature in the latest WIP, but I am unable to enable or disable it using macros. The following commands don’t seem to work:

Enable One Shot Recording:
_History _OneShotRecord=Yes _Enter

Disable One Shot Recording:
_History _OneShotRecord=No _Enter

It works here,
which version are you running?
If you run GetIssueState and enter the YT number, does it return true?

Hi,
I am running Version 9 WIP (9.0.24282.12306, 2024-10-08). The YT number returns true.

  1. Exectue alias “A” with macro _History _OneShotRecord=Yes _Enter
  2. Observe that “Record History” is disabled on the status bar (should be enabled).

Hei Håvard -
Thanks → RH-84270 History: OneShotRecord=Yes Does Not Work with Aliases
-wim

1 Like

RH-83798 is fixed in Rhino 8 Service Release 13