Base class implementation for undo actions that require (de)serialization of data.
Fields
Properties
ExpiresDisplay
Override this property if you want the Rhino viewport display to refresh upon undo completion.
Implements: ExpiresDisplay
ExpiresSolution
Override this property if you want the Grasshopper solution to refresh upon undo completion.
Implements: ExpiresSolution
Implements: State
Methods
Deserialize
#Deserializes the obj from the local archive.
Parameters:
| obj (GH_ISerializable) |
Exceptions:
| ArgumentNullException | Thrown when obj is a null reference. |
| NullReferenceException | Thrown when the internal archive data is null. |
| IOException | Thrown when the deserialization fails. |
Internal_Redo
Parameters:
| doc (GH_Document) |
Internal_Undo
Parameters:
| doc (GH_Document) |
Parameters:
| doc (GH_Document) |
Implements: Redo
Serialize
#Serializes the obj into the local archive.
Parameters:
| obj (GH_ISerializable) | Object to serialize |
SerializeToByteArray
#Serializes the obj into the local archive.
Parameters:
| obj (GH_ISerializable) | Object to serialize |
Parameters:
| doc (GH_Document) |
Implements: Undo