SnapShotsClientSaveObject Method |
Called when the user saves a snapshot and SupportsObjects() and SupportsObject(Rhino.DocObjects.RhinoObject doc_object) returns true.
Namespace:
Rhino.DocObjects.SnapShots
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax public abstract bool SaveObject(
RhinoDoc doc,
RhinoObject doc_object,
ref Transform transform,
BinaryArchiveWriter archive
)
Public MustOverride Function SaveObject (
doc As RhinoDoc,
doc_object As RhinoObject,
ByRef transform As Transform,
archive As BinaryArchiveWriter
) As Boolean
Parameters
- doc
- Type: RhinoRhinoDoc
doc is the current document. - doc_object
- Type: Rhino.DocObjectsRhinoObject
doc_obj is the current object. - transform
- Type: Rhino.GeometryTransform
transform is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot.
After that the matrix is updated when the object is transformed(scale, rotate etc.). - archive
- Type: Rhino.FileIOBinaryArchiveWriter
archive is the archive to write the data to.
Return Value
Type:
Booleantrue if successful, otherwise false.
See Also