GH_GenericObjectAction
GH_ArchivedUndoActionGH_UndoActionRecords a single object change. Object changes are undone/redone by (de)serializing the objects. Object changes also keep track of all wires feeding into and coming out of the object.
Constructors
Fields
Properties
ExpiresDisplay
Override this property if you want the Rhino viewport display to refresh upon undo completion.
Implements: ExpiresDisplay
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. |
Parameters:
| reader (GH_IReader) |
Overrides: GH_UndoAction.Read
Parameters:
| doc (GH_Document) |
Implements: Redo
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
Parameters:
| writer (GH_IWriter) |
Overrides: GH_UndoAction.Write