Rhino.EnableHistoryRecording bug

state=Rhino.EnableHistoryRecording() should return a Boolean value representing the current state of History recording (True or False) but if History recording is not enabled, it returns Empty, not False. If History recording is on however, it does return True.


What type is state?

If it’s a boolean, only true and false are valid. There is no invalid or empty boolean.

A boolean false is in fact an integer 0. Perhaps if state is interpreted as a string, this integer 0 translates to a String.Empty

This sounds like the perfect behavior to me. If history is enabled it shows whether history is recording or not. If history is not enabled the same function call returns a null value which indicates the boolean doesn’t even exist, which indicates that history isn’t on.

My fault. I’ll see that this is fixed for the next SR…