Click or drag to resize

HistoryRecord Class

Provides a single bundling of information to be passed to Rhino when setting up history for an object.
Inheritance Hierarchy

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
public class HistoryRecord : IDisposable

The HistoryRecord type exposes the following members.

Public methodHistoryRecord
Initializes a new instance of the HistoryRecord class
Public propertyCopyOnReplaceObject
When an object is replaced and the old object has a history record with this field set, the history record is copied and attached to the new object. That allows a descendant object to continue the history linkage after it is edited.
Public propertyHandle
Wrapped native C++ pointer to CRhinoHistory instance
Public methodDispose
Actively reclaims unmanaged resources that this instance uses.
Protected methodDispose(Boolean)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

Public methodEquals (Inherited from Object.)
Protected methodFinalize
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Overrides ObjectFinalize.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetBool
Public methodSetBools
Public methodSetBrep
Public methodSetColor
Public methodSetColors
Public methodSetCurve
Public methodSetDouble
Public methodSetDoubles
Public methodSetGuid
Public methodSetGuids
Public methodSetHistoryVersion
Specifies a non-zero integer that identifies the version of this history record. The virtual ReplayHistory() functions can check this version to avoid replaying history using information created by earlier versions of the command.
Public methodSetInt
Public methodSetInts
Public methodSetMesh
Public methodSetObjRef
Public methodSetPoint3d
Public methodSetPoint3dOnObject
Public methodSetPoint3ds
Public methodSetString
Public methodSetStrings
Public methodSetSurface
Public methodSetTransorm
Public methodSetVector3d
Public methodSetVector3ds
Public methodToString (Inherited from Object.)
To use this object, just pass it to a RhinoDoc.Add() method along with the needed geometry. Do not reuse this class for more than one history addition.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also