Properties

BoundingBox

#Since v5.0
public BoundingBox BoundingBox { get; }
Gets the bounding box for all objects (normal, locked and hidden) in this document that exist in "model" space. This bounding box does not include objects that exist in layout space.

BoundingBoxVisible

#Since v5.0
public BoundingBox BoundingBoxVisible { get; }
Gets the bounding box for all visible objects (normal and locked) in this document that exist in "model" space. This bounding box does not include hidden objects or any objects that exist in layout space.

ComponentType

#Since v6.0
public override ModelComponentType ComponentType { get; }

Count

public virtual int Count { get; }
Returns the count of all items, including deleted ones.
inherited fromCommonComponentTable<T>

Document

#Since v5.0
public RhinoDoc Document { get; }
Gets the document that owns this object table.

HistoryRecordCount

#Since v6.0
public int HistoryRecordCount { get; }
Returns the amount of history records in this document.

Methods

Add

#Since v6.0
public Guid Add(GeometryBase geometry, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds geometry that is not further specified.

This is meant, for example, to handle addition of sets of different geometrical entities.

geometry (GeometryBase)The base geometry. This cannot be null.
attributes (ObjectAttributes)The object attributes. This can be null.
history (HistoryRecord)The history information that will be saved.
reference (bool)If reference is true, object will not be saved in the 3dm file.
The new object ID on success.
ArgumentNullExceptionIf geometry is null.

Add

#Since v5.0
public Guid Add(GeometryBase geometry, ObjectAttributes attributes)
Adds geometry that is not further specified.

This is meant, for example, to handle addition of sets of different geometrical entities.

geometry (GeometryBase)The base geometry. This cannot be null.
attributes (ObjectAttributes)The object attributes. This can be null.
The new object ID on success.
ArgumentNullExceptionIf geometry is null.

Add

#Since v5.0
public Guid Add(GeometryBase geometry)
Adds geometry that is not further specified.

This is meant, for example, to handle addition of sets of different geometrical entities.

geometry (GeometryBase)The base geometry. This cannot be null.
The new object ID on success.
ArgumentNullExceptionIf geometry is null.

AddAngularDimension

#Since v5.0
public Guid AddAngularDimension(AngularDimension dimension, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds an angular dimension object to the document.
dimension (AngularDimension)Dimension object to add.
attributes (ObjectAttributes)Attributes to apply to dimension.
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Guid of the newly added object or Guid.Empty on failure.

AddAngularDimension

#Since v5.0
public Guid AddAngularDimension(AngularDimension dimension, ObjectAttributes attributes)
Adds a angular dimension object to the document.
dimension (AngularDimension)Dimension object to add.
attributes (ObjectAttributes)
The Guid of the newly added object or Guid.Empty on failure.

AddAngularDimension

#Since v5.0
public Guid AddAngularDimension(AngularDimension dimension)
Adds a angular dimension object to the document.
dimension (AngularDimension)Dimension object to add.
The Id of the newly added object or Guid.Empty on failure.

AddArc

#Since v5.0
public Guid AddArc(Arc arc, ObjectAttributes attributes, HistoryRecord history, bool reference)
arc (Arc)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddArc

#Since v5.0
public Guid AddArc(Arc arc, ObjectAttributes attributes)
Adds a curve object to the document representing an arc.
arc (Arc)An arc value.
attributes (ObjectAttributes)Attributes to apply to arc.
A unique identifier for the object.

AddArc

#Since v5.0
public Guid AddArc(Arc arc)
Adds a curve object to the document representing an arc.
arc (Arc)An arc value.
A unique identifier for the object.

AddBox

#Since v6.0
public Guid AddBox(Box box, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a box to the object table, as an extrusion.
box (Box)The box.
attributes (ObjectAttributes)Attributes that will be linked with the surface object.
history (HistoryRecord)History data records.
reference (bool)If a reference, object will not be saved in the document.
The ID.

AddBox

#Since v6.0
public Guid AddBox(Box box, ObjectAttributes attributes)
Adds a box to the object table.
box (Box)The box.
attributes (ObjectAttributes)Attributes that will be linked with the surface object.
The ID.

AddBox

#Since v6.0
public Guid AddBox(Box box)
Adds a box to the object table.
box (Box)The box.
The ID.

AddBrep

#Since v5.0
public Guid AddBrep(Brep brep, ObjectAttributes attributes, HistoryRecord history, bool reference, bool splitKinkySurfaces)
brep (Brep)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)
splitKinkySurfaces (bool)

AddBrep

#Since v5.0
public Guid AddBrep(Brep brep, ObjectAttributes attributes, HistoryRecord history, bool reference)
brep (Brep)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddBrep

#Since v5.0
public Guid AddBrep(Brep brep, ObjectAttributes attributes)
Adds a brep object to Rhino.
brep (Brep)A duplicate of this brep is added to Rhino.
attributes (ObjectAttributes)attributes to apply to brep.
A unique identifier for the object.

AddBrep

#ExampleSince v5.0
public Guid AddBrep(Brep brep)
Adds a brep object to Rhino.
brep (Brep)A duplicate of this brep is added to Rhino.
A unique identifier for the object.

AddCentermark

#Since v6.0
public Guid AddCentermark(Centermark centermark, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds an ordinate dimension object to the document.
centermark (Centermark)Dimension object to add.
attributes (ObjectAttributes)Attributes to apply to dimension.
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Guid of the newly added object or Guid.Empty on failure.

AddCircle

#Since v5.0
public Guid AddCircle(Circle circle, ObjectAttributes attributes, HistoryRecord history, bool reference)
circle (Circle)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddCircle

#Since v5.0
public Guid AddCircle(Circle circle, ObjectAttributes attributes)
Adds a curve object to the document representing a circle.
circle (Circle)A circle value.
attributes (ObjectAttributes)Attributes to apply to circle.
A unique identifier for the object.

AddCircle

#ExampleSince v5.0
public Guid AddCircle(Circle circle)
Adds a curve object to the document representing a circle.
circle (Circle)A circle value.
A unique identifier for the object.

AddClippingPlane

#Since v5.0
public Guid AddClippingPlane(Plane plane, double uMagnitude, double vMagnitude, Guid clippedViewportId, ObjectAttributes attributes, HistoryRecord history, bool reference)
plane (Plane)
uMagnitude (double)
vMagnitude (double)
clippedViewportId (Guid)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddClippingPlane

#ExampleSince v5.0
public Guid AddClippingPlane(Plane plane, double uMagnitude, double vMagnitude, Guid clippedViewportId)
Adds a clipping plane object to Rhino.
plane (Plane)The plane value.
uMagnitude (double)The size in the U direction.
vMagnitude (double)The size in the V direction.
clippedViewportId (Guid)Viewport ID that the new clipping plane will clip.
A unique identifier for the object.

AddClippingPlane

#Since v5.0
public Guid AddClippingPlane(Plane plane, double uMagnitude, double vMagnitude, IEnumerable<Guid> clippedViewportIds, ObjectAttributes attributes, HistoryRecord history, bool reference)
plane (Plane)
uMagnitude (double)
vMagnitude (double)
clippedViewportIds (IEnumerable<Guid>)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddClippingPlane

#Since v5.0
public Guid AddClippingPlane(Plane plane, double uMagnitude, double vMagnitude, IEnumerable<Guid> clippedViewportIds, ObjectAttributes attributes)
Adds a clipping plane object to Rhino.
plane (Plane)The plane value.
uMagnitude (double)The size in the U direction.
vMagnitude (double)The size in the V direction.
clippedViewportIds (IEnumerable<Guid>)A list, an array or any enumerable set of viewport IDs that the new clipping plane will clip.
attributes (ObjectAttributes)Document attributes for the plane.
A unique identifier for the object.

AddClippingPlane

#Since v5.0
public Guid AddClippingPlane(Plane plane, double uMagnitude, double vMagnitude, IEnumerable<Guid> clippedViewportIds)
Adds a clipping plane object to Rhino.
plane (Plane)The plane value.
uMagnitude (double)The size in the U direction.
vMagnitude (double)The size in the V direction.
clippedViewportIds (IEnumerable<Guid>)A list, an array or any enumerable set of viewport IDs that the new clipping plane will clip.
A unique identifier for the object.

AddClippingPlaneSurface

#Since v8.11
public Guid AddClippingPlaneSurface(ClippingPlaneSurface clippingPlane, ObjectAttributes attributes, HistoryRecord history, bool reference)
clippingPlane (ClippingPlaneSurface)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddCurve

#Since v5.0
public Guid AddCurve(Curve curve, ObjectAttributes attributes, HistoryRecord history, bool reference)
curve (Curve)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddCurve

#Since v5.0
public Guid AddCurve(Curve curve, ObjectAttributes attributes)
Adds a curve object to Rhino.
curve (Curve)A curve. A duplicate of this curve is added to Rhino.
attributes (ObjectAttributes)Attributes to apply to curve.
A unique identifier for the object.

AddCurve

#ExampleSince v5.0
public Guid AddCurve(Curve curve)
Adds a curve object to Rhino.
curve (Curve)A curve. A duplicate of this curve is added to Rhino.
A unique identifier for the object.

AddEllipse

#Since v5.0
public Guid AddEllipse(Ellipse ellipse, ObjectAttributes attributes, HistoryRecord history, bool reference)
ellipse (Ellipse)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddEllipse

#Since v5.0
public Guid AddEllipse(Ellipse ellipse, ObjectAttributes attributes)
Adds a curve object to the document representing an ellipse.
ellipse (Ellipse)An ellipse value.
attributes (ObjectAttributes)Attributes to apply to ellipse.
A unique identifier for the object.

AddEllipse

#Since v5.0
public Guid AddEllipse(Ellipse ellipse)
Adds a curve object to the document representing an ellipse.
ellipse (Ellipse)An ellipse value.
A unique identifier for the object.

AddExplodedInstancePieces

#Since v5.11
public Guid[] AddExplodedInstancePieces(InstanceObject instance, bool explodeNestedInstances = true, bool deleteInstance = false)
instance (InstanceObject)
explodeNestedInstances (bool = true)
deleteInstance (bool = false)

AddExtrusion

#Since v5.0
public Guid AddExtrusion(Extrusion extrusion, ObjectAttributes attributes, HistoryRecord history, bool reference)
extrusion (Extrusion)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddExtrusion

#Since v5.0
public Guid AddExtrusion(Extrusion extrusion, ObjectAttributes attributes)
Adds an extrusion object to Rhino.
extrusion (Extrusion)A duplicate of this extrusion is added to Rhino.
attributes (ObjectAttributes)Attributes that will be linked with the extrusion object.
A unique identifier for the object.

AddExtrusion

#Since v5.0
public Guid AddExtrusion(Extrusion extrusion)
Adds an extrusion object to Rhino.
extrusion (Extrusion)A duplicate of this extrusion is added to Rhino.
A unique identifier for the object.

AddHatch

#Since v5.0
public Guid AddHatch(Hatch hatch, ObjectAttributes attributes, HistoryRecord history, bool reference)
hatch (Hatch)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddHatch

#Since v5.0
public Guid AddHatch(Hatch hatch, ObjectAttributes attributes)
hatch (Hatch)
attributes (ObjectAttributes)

AddHatch

#ExampleSince v5.0
public Guid AddHatch(Hatch hatch)
hatch (Hatch)

AddInstanceObject

#Since v6.24
public Guid AddInstanceObject(int instanceDefinitionIndex, Transform instanceXform, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds an instance object to the document.
instanceDefinitionIndex (int)The index of the instance definition.
instanceXform (Transform)The instance transformation.
attributes (ObjectAttributes)The attributes to apply to the instance object.
history (HistoryRecord)The history record associated with this instance object.
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives.
A unique identifier for the object if successful. Guid.Empty it not successful.

AddInstanceObject

#Since v5.0
public Guid AddInstanceObject(int instanceDefinitionIndex, Transform instanceXform, ObjectAttributes attributes)
Adds an instance object to the document.
instanceDefinitionIndex (int)The index of the instance definition.
instanceXform (Transform)The instance transformation.
attributes (ObjectAttributes)The attributes to apply to the instance object.
A unique identifier for the object if successful. Guid.Empty it not successful.

AddInstanceObject

#Since v5.0
public Guid AddInstanceObject(int instanceDefinitionIndex, Transform instanceXform)
Adds an instance object to the document.
instanceDefinitionIndex (int)The index of the instance definition.
instanceXform (Transform)The instance transformation.
A unique identifier for the object if successful. Guid.Empty it not successful.

AddLeader

#Since v5.0
public Guid AddLeader(IEnumerable<Point3d> points)
points (IEnumerable<Point3d>)

AddLeader

#Since v6.0
public Guid AddLeader(Leader leader, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a Leader object to the document.
leader (Leader)The leader object.
attributes (ObjectAttributes)Attributes to apply to rich text.
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Guid of the newly added object or Guid.Empty on failure.

AddLeader

#Since v6.0
public Guid AddLeader(Leader leader, ObjectAttributes attributes)
Adds Leader object to the document.
leader (Leader)The leader object.
attributes (ObjectAttributes)Attributes to apply to rich text.
The Guid of the newly added object or Guid.Empty on failure.

AddLeader

#Since v6.0
public Guid AddLeader(Leader leader)
Adds a Leader object to the document.
leader (Leader)The leader object.
The Id of the newly added object or Guid.Empty on failure.

AddLeader

#Since v5.0
public Guid AddLeader(Plane plane, IEnumerable<Point2d> points, ObjectAttributes attributes)
plane (Plane)
points (IEnumerable<Point2d>)
attributes (ObjectAttributes)

AddLeader

#ExampleSince v5.0
public Guid AddLeader(Plane plane, IEnumerable<Point2d> points)
plane (Plane)
points (IEnumerable<Point2d>)

AddLeader

#Since v5.0
public Guid AddLeader(string text, IEnumerable<Point3d> points)
text (string)
points (IEnumerable<Point3d>)

AddLeader

#Since v5.0
public Guid AddLeader(string text, Plane plane, IEnumerable<Point2d> points, ObjectAttributes attributes, HistoryRecord history, bool reference)
text (string)
plane (Plane)
points (IEnumerable<Point2d>)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddLeader

#Since v5.0
public Guid AddLeader(string text, Plane plane, IEnumerable<Point2d> points, ObjectAttributes attributes)
text (string)
plane (Plane)
points (IEnumerable<Point2d>)
attributes (ObjectAttributes)

AddLeader

#Since v5.0
public Guid AddLeader(string text, Plane plane, IEnumerable<Point2d> points)
text (string)
plane (Plane)
points (IEnumerable<Point2d>)

AddLine

#Since v5.0
public Guid AddLine(Line line, ObjectAttributes attributes)
Adds a line object to Rhino.
line (Line)The line value.
attributes (ObjectAttributes)Attributes to apply to line.
A unique identifier for the object.

AddLine

#Since v5.0
public Guid AddLine(Line line)
Adds a line object to Rhino.
line (Line)
A unique identifier for the object.

AddLine

#Since v5.0
public Guid AddLine(Point3d from, Point3d to, ObjectAttributes attributes, HistoryRecord history, bool reference)
from (Point3d)
to (Point3d)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddLine

#Since v5.0
public Guid AddLine(Point3d from, Point3d to, ObjectAttributes attributes)
Adds a line object to Rhino.
from (Point3d)The line origin.
to (Point3d)The line end.
attributes (ObjectAttributes)Attributes to apply to line.
A unique identifier for the object.

AddLine

#ExampleSince v5.0
public Guid AddLine(Point3d from, Point3d to)
Adds a line object to Rhino.
from (Point3d)The line origin.
to (Point3d)The line end.
A unique identifier for the object.

AddLinearDimension

#Since v5.0
public Guid AddLinearDimension(LinearDimension dimension, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a linear dimension object to the document.
dimension (LinearDimension)Dimension object to add.
attributes (ObjectAttributes)Attributes to apply to dimension.
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Guid of the newly added object or Guid.Empty on failure.

AddLinearDimension

#Since v5.0
public Guid AddLinearDimension(LinearDimension dimension, ObjectAttributes attributes)
Adds a linear dimension object to the document.
dimension (LinearDimension)Dimension object to add.
attributes (ObjectAttributes)
The Guid of the newly added object or Guid.Empty on failure.

AddLinearDimension

#ExampleSince v5.0
public Guid AddLinearDimension(LinearDimension dimension)
Adds a linear dimension object to the document.
dimension (LinearDimension)Dimension object to add.
The Id of the newly added object or Guid.Empty on failure.

AddMesh

#Since v6.0
public Guid AddMesh(Mesh mesh, ObjectAttributes attributes, HistoryRecord history, bool reference, bool requireValidMesh)
mesh (Mesh)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)
requireValidMesh (bool)

AddMesh

#Since v5.0
public Guid AddMesh(Mesh mesh, ObjectAttributes attributes, HistoryRecord history, bool reference)
mesh (Mesh)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddMesh

#Since v5.0
public Guid AddMesh(Mesh mesh, ObjectAttributes attributes)
Adds a mesh object to Rhino.
mesh (Mesh)A duplicate of this mesh is added to Rhino.
attributes (ObjectAttributes)Attributes that will be linked with the mesh object.
A unique identifier for the object.

AddMesh

#ExampleSince v5.0
public Guid AddMesh(Mesh mesh)
Adds a mesh object to Rhino.
mesh (Mesh)A duplicate of this mesh is added to Rhino.
A unique identifier for the object.

AddMorphControl

#Since v6.0
public Guid AddMorphControl(MorphControl morphControl, ObjectAttributes attributes, HistoryRecord history, bool reference)
morphControl (MorphControl)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddMorphControl

#Since v5.0
public Guid AddMorphControl(MorphControl morphControl, ObjectAttributes attributes)
morphControl (MorphControl)
attributes (ObjectAttributes)

AddMorphControl

#Since v5.0
public Guid AddMorphControl(MorphControl morphControl)
morphControl (MorphControl)

AddOrderedPointCloud

#Since v8.0
public Guid AddOrderedPointCloud(int xCt, int yCt, int zCt, Point3d min, Point3d max, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a point cloud object to the document.
xCt (int)Number of points in X dir.
yCt (int)Number of points in Y dir.
zCt (int)Number of points in Z dir.
min (Point3d)point at x0,y0,z0 of bounding box of the pointcloud
max (Point3d)point at x1,y1,z1 of bounding box of the pointcloud
attributes (ObjectAttributes)Attributes to apply to point cloud. null is acceptable
history (HistoryRecord)history associated with this point cloud. null is acceptable
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives
A unique identifier for the object.

AddOrderedPointCloud

#Since v8.0
public Guid AddOrderedPointCloud(int xCt, int yCt, int zCt, Point3d[] box, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a point cloud object to the document.
xCt (int)Number of points in X dir.
yCt (int)Number of points in Y dir.
zCt (int)Number of points in Z dir.
box (Point3d[])box to use for output, does not need to be a boundingbox. The function that takes to points assumes it's a bounding box.
attributes (ObjectAttributes)Attributes to apply to point cloud. null is acceptable
history (HistoryRecord)history associated with this point cloud. null is acceptable
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives
A unique identifier for the object.

AddOrdinateDimension

#Since v6.0
public Guid AddOrdinateDimension(OrdinateDimension dimordinate, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds an ordinate dimension object to the document.
dimordinate (OrdinateDimension)Dimension object to add.
attributes (ObjectAttributes)Attributes to apply to dimension.
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Guid of the newly added object or Guid.Empty on failure.

AddPictureFrame

#Since v5.10
public Guid AddPictureFrame(Plane plane, string texturePath, bool asMesh, double width, double height, bool selfIllumination, bool embedBitmap)
Creates a PictureFrame object from a plane and a path to an image file, Note, a PictureFrame object is just a Plane surface or mesh that has a material with a texture assigned to it that displays in all display modes.
plane (Plane)Plane in which the PictureFrame will be created. Bottom left corner of picture will be at plane's origin, width will be in the plane's x axis direction, height will be in the plane's y axis direction.
texturePath (string)path to an image file
asMesh (bool)If true, the function will make a MeshObject rather than a surface
width (double)Width of the resulting PictureFrame. If 0.0, the width of the picture frame is the width of the image if height is also 0.0 or calculated from the height and aspect ratio of the image if height is not 0.0.
height (double)Height of the resulting PictureFrame. If 0.0, the height of the picture frame is the height of the image if width is also 0.0 or calculated from the width and aspect ratio of the image if width is not 0.0.
selfIllumination (bool)If true, the image mapped to the picture frame plane always displays at full intensity and is not affected by light or shadow.
embedBitmap (bool)If true, the function adds the image to the bitmap table of the document to which the PictureFrame will be added
A unique identifier for the object

AddPoint

#Since v5.0
public Guid AddPoint(double x, double y, double z)
Adds a point object to the document.
x (double)X component of point coordinate.
y (double)Y component of point coordinate.
z (double)Z component of point coordinate.
A unique identifier for the object..

AddPoint

#Since v6.0
public Guid AddPoint(Point point, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a point object and its geometry-linked information to the document
point (Point)A point geometry class.
attributes (ObjectAttributes)attributes to apply to point. null is acceptable
history (HistoryRecord)history associated with this point. null is acceptable
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives
A unique identifier for the object.
ArgumentNullExceptionIf point is null.

AddPoint

#Since v5.0
public Guid AddPoint(Point3d point, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a point object to the document
point (Point3d)location of point
attributes (ObjectAttributes)attributes to apply to point. null is acceptable
history (HistoryRecord)history associated with this point. null is acceptable
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives
A unique identifier for the object.

AddPoint

#Since v5.0
public Guid AddPoint(Point3d point, ObjectAttributes attributes)
Adds a point object to the document.
point (Point3d)location of point.
attributes (ObjectAttributes)attributes to apply to point. null is acceptable
A unique identifier for the object.

AddPoint

#ExampleSince v5.0
public Guid AddPoint(Point3d point)
Adds a point object to the document.
point (Point3d)location of point.
A unique identifier for the object.

AddPoint

#Since v5.0
public Guid AddPoint(Point3f point, ObjectAttributes attributes)
Adds a point object to the document.
point (Point3f)location of point.
attributes (ObjectAttributes)attributes to apply to point.
A unique identifier for the object.

AddPoint

#ExampleSince v5.0
public Guid AddPoint(Point3f point)
Adds a point object to the document.
point (Point3f)location of point.
A unique identifier for the object.

AddPointCloud

#Since v5.0
public Guid AddPointCloud(IEnumerable<Point3d> points, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a point cloud object to the document.
points (IEnumerable<Point3d>)A list, an array or any enumerable set of points
attributes (ObjectAttributes)Attributes to apply to point cloud. null is acceptable
history (HistoryRecord)history associated with this point cloud. null is acceptable
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives
A unique identifier for the object.

AddPointCloud

#Since v5.0
public Guid AddPointCloud(IEnumerable<Point3d> points, ObjectAttributes attributes)
Adds a point cloud object to the document.
points (IEnumerable<Point3d>)A list, an array or any enumerable set of points.
attributes (ObjectAttributes)attributes to apply to point cloud.
A unique identifier for the object.

AddPointCloud

#Since v5.0
public Guid AddPointCloud(IEnumerable<Point3d> points)
Adds a point cloud object to the document.
points (IEnumerable<Point3d>)A list, an array or any enumerable set of points.
A unique identifier for the object.

AddPointCloud

#Since v5.0
public Guid AddPointCloud(PointCloud cloud, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a point cloud object to the document.
cloud (PointCloud)PointCloud to add.
attributes (ObjectAttributes)Attributes to apply to point cloud. null is acceptable
history (HistoryRecord)history associated with this point cloud. null is acceptable
reference (bool)true if the object is from a reference file. Reference objects do not persist in archives
A unique identifier for the object.

AddPointCloud

#Since v5.0
public Guid AddPointCloud(PointCloud cloud, ObjectAttributes attributes)
Adds a point cloud object to the document.
cloud (PointCloud)PointCloud to add.
attributes (ObjectAttributes)Attributes to apply to point cloud.
A unique identifier for the object.

AddPointCloud

#Since v5.0
public Guid AddPointCloud(PointCloud cloud)
Adds a point cloud object to the document.
cloud (PointCloud)PointCloud to add.
A unique identifier for the object.

AddPoints

#Since v5.0
public RhinoList<Guid> AddPoints(IEnumerable<Point3d> points, ObjectAttributes attributes)
Adds multiple points to the document.
points (IEnumerable<Point3d>)Points to add.
attributes (ObjectAttributes)Attributes to apply to point objects.
List of object ids.

AddPoints

#Since v5.0
public RhinoList<Guid> AddPoints(IEnumerable<Point3d> points)
Adds multiple points to the document.
points (IEnumerable<Point3d>)Points to add.
List of object ids.

AddPoints

#Since v5.0
public RhinoList<Guid> AddPoints(IEnumerable<Point3f> points, ObjectAttributes attributes)
Adds multiple points to the document.
points (IEnumerable<Point3f>)Points to add.
attributes (ObjectAttributes)Attributes to apply to point objects.
List of object ids.

AddPoints

#Since v5.0
public RhinoList<Guid> AddPoints(IEnumerable<Point3f> points)
Adds multiple points to the document.
points (IEnumerable<Point3f>)Points to add.
List of object ids.

AddPolyline

#Since v5.0
public Guid AddPolyline(IEnumerable<Point3d> points, ObjectAttributes attributes, HistoryRecord history, bool reference)
points (IEnumerable<Point3d>)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddPolyline

#Since v5.0
public Guid AddPolyline(IEnumerable<Point3d> points, ObjectAttributes attributes)
Adds a polyline object to Rhino.
points (IEnumerable<Point3d>)A Polyline; a list, an array, or any enumerable set of Point3d.
attributes (ObjectAttributes)attributes to apply to line.
A unique identifier for the object.

AddPolyline

#ExampleSince v5.0
public Guid AddPolyline(IEnumerable<Point3d> points)
Adds a polyline object to Rhino.
points (IEnumerable<Point3d>)A Polyline; a list, an array, or any enumerable set of Point3d.
A unique identifier for the object.

AddRadialDimension

#Since v5.0
public Guid AddRadialDimension(RadialDimension dimension, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a radial dimension object to the document.
dimension (RadialDimension)Dimension object to add.
attributes (ObjectAttributes)Attributes to apply to dimension.
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Guid of the newly added object or Guid.Empty on failure.

AddRadialDimension

#Since v5.0
public Guid AddRadialDimension(RadialDimension dimension, ObjectAttributes attributes)
dimension (RadialDimension)
attributes (ObjectAttributes)

AddRadialDimension

#ExampleSince v5.0
public Guid AddRadialDimension(RadialDimension dimension)
dimension (RadialDimension)

AddRectangle

#Since v6.0
public Guid AddRectangle(Rectangle3d rectangle, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a rectangle to the object table.
rectangle (Rectangle3d)The rectangle.
attributes (ObjectAttributes)Attributes that will be linked with the surface object.
history (HistoryRecord)History data records.
reference (bool)If a reference, object will not be saved in the document.
The ID.

AddRectangle

#Since v6.0
public Guid AddRectangle(Rectangle3d rectangle, ObjectAttributes attributes)
Adds a rectangle to the object table.
rectangle (Rectangle3d)The rectangle.
attributes (ObjectAttributes)Attributes that will be linked with the surface object.
The ID.

AddRectangle

#Since v6.0
public Guid AddRectangle(Rectangle3d rectangle)
Adds a rectangle to the object table.
rectangle (Rectangle3d)The rectangle.
The ID.

AddRhinoObject

#Since v5.0
public void AddRhinoObject(BrepObject brepObject, Brep brep)
brepObject (BrepObject)
brep (Brep)

AddRhinoObject

#Since v5.0
public void AddRhinoObject(CurveObject curveObject, Curve curve)
curveObject (CurveObject)
curve (Curve)

AddRhinoObject

#Since v6.1
public void AddRhinoObject(CustomBrepObject brepObject, HistoryRecord history)
brepObject (CustomBrepObject)
history (HistoryRecord)

AddRhinoObject

#Since v5.0
public void AddRhinoObject(CustomBrepObject brepObject)
brepObject (CustomBrepObject)

AddRhinoObject

#Since v6.1
public void AddRhinoObject(CustomCurveObject curveObject, HistoryRecord history)
curveObject (CustomCurveObject)
history (HistoryRecord)

AddRhinoObject

#Since v6.1
public void AddRhinoObject(CustomMeshObject meshObject, HistoryRecord history)
meshObject (CustomMeshObject)
history (HistoryRecord)

AddRhinoObject

#Since v5.0
public void AddRhinoObject(CustomMeshObject meshObject)
meshObject (CustomMeshObject)

AddRhinoObject

#Since v6.1
public void AddRhinoObject(CustomPointObject pointObject, HistoryRecord history)
pointObject (CustomPointObject)
history (HistoryRecord)

AddRhinoObject

#Since v5.6
public void AddRhinoObject(CustomPointObject pointObject)
pointObject (CustomPointObject)

AddRhinoObject

#Since v5.0
public void AddRhinoObject(MeshObject meshObject, Mesh mesh)
meshObject (MeshObject)
mesh (Mesh)

AddRhinoObject

#Since v5.6
public void AddRhinoObject(PointObject pointObject, Point point)
pointObject (PointObject)
point (Point)

AddSphere

#Since v5.0
public Guid AddSphere(Sphere sphere, ObjectAttributes attributes, HistoryRecord history, bool reference)
sphere (Sphere)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddSphere

#Since v5.0
public Guid AddSphere(Sphere sphere, ObjectAttributes attributes)
sphere (Sphere)
attributes (ObjectAttributes)

AddSphere

#ExampleSince v5.0
public Guid AddSphere(Sphere sphere)
sphere (Sphere)

AddSubD

#Since v7.0
public Guid AddSubD(SubD subD, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a SubD object to Rhino.
subD (SubD)A duplicate of this SubD is added to Rhino.
attributes (ObjectAttributes)Attributes that will be linked with the object.
history (HistoryRecord)
reference (bool)
A unique identifier for the object.

AddSubD

#Since v7.0
public Guid AddSubD(SubD subD, ObjectAttributes attributes)
Adds a SubD object to Rhino.
subD (SubD)A duplicate of this SubD is added to Rhino.
attributes (ObjectAttributes)Attributes that will be linked with the object.
A unique identifier for the object.

AddSubD

#Since v7.0
public Guid AddSubD(SubD subD)
Adds a SubD object to Rhino.
subD (SubD)A duplicate of this SubD is added to Rhino.
A unique identifier for the object.

AddSurface

#Since v5.0
public Guid AddSurface(Surface surface, ObjectAttributes attributes, HistoryRecord history, bool reference)
surface (Surface)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddSurface

#Since v5.0
public Guid AddSurface(Surface surface, ObjectAttributes attributes)
Adds a surface object to Rhino.
surface (Surface)A duplicate of this surface is added to Rhino.
attributes (ObjectAttributes)Attributes that will be linked with the surface object.
A unique identifier for the object.

AddSurface

#ExampleSince v5.0
public Guid AddSurface(Surface surface)
Adds a surface object to Rhino.
surface (Surface)A duplicate of this surface is added to Rhino.
A unique identifier for the object.

AddText

#Since v5.0
public Guid AddText(string text, Plane plane, double height, string fontName, bool bold, bool italic, ObjectAttributes attributes, HistoryRecord history, bool reference)
text (string)
plane (Plane)
height (double)
fontName (string)
bold (bool)
italic (bool)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddText

#Since v5.0
public Guid AddText(string text, Plane plane, double height, string fontName, bool bold, bool italic, ObjectAttributes attributes)
Adds an annotation text object to the document.
text (string)Text string.
plane (Plane)Plane of text.
height (double)Height of text.
fontName (string)Name of FontFace.
bold (bool)Bold flag.
italic (bool)Italic flag.
attributes (ObjectAttributes)Attributes that will be linked with the object.
The Guid of the newly added object or Guid.Empty on failure.

AddText

#Since v5.0
public Guid AddText(string text, Plane plane, double height, string fontName, bool bold, bool italic, TextJustification justification, ObjectAttributes attributes, HistoryRecord history, bool reference)
text (string)
plane (Plane)
height (double)
fontName (string)
bold (bool)
italic (bool)
justification (TextJustification)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddText

#Since v5.0
public Guid AddText(string text, Plane plane, double height, string fontName, bool bold, bool italic, TextJustification justification, ObjectAttributes attributes)
text (string)
plane (Plane)
height (double)
fontName (string)
bold (bool)
italic (bool)
justification (TextJustification)
attributes (ObjectAttributes)

AddText

#Since v5.0
public Guid AddText(string text, Plane plane, double height, string fontName, bool bold, bool italic, TextJustification justification)
text (string)
plane (Plane)
height (double)
fontName (string)
bold (bool)
italic (bool)
justification (TextJustification)

AddText

#ExampleSince v5.0
public Guid AddText(string text, Plane plane, double height, string fontName, bool bold, bool italic)
Adds an annotation text object to the document.
text (string)Text string.
plane (Plane)Plane of text.
height (double)Height of text.
fontName (string)Name of FontFace.
bold (bool)Bold flag.
italic (bool)Italic flag.
The Guid of the newly added object or Guid.Empty on failure.

AddText

#Since v5.0
public Guid AddText(Text3d text3d, ObjectAttributes attributes)
Adds an annotation text object to the document.
text3d (Text3d)The text object to add.
attributes (ObjectAttributes)Object Attributes.
The Guid of the newly added object or Guid.Empty on failure.

AddText

#ExampleSince v5.0
public Guid AddText(Text3d text3d)
Adds an annotation text object to the document.
text3d (Text3d)The text object to add.
The Guid of the newly added object or Guid.Empty on failure.

AddText

#Since v5.0
public Guid AddText(TextEntity text, ObjectAttributes attributes, HistoryRecord history, bool reference)
Adds a text object to the document.
text (TextEntity)Text object to add.
attributes (ObjectAttributes)
history (HistoryRecord)Object history to save.
reference (bool)If reference, then object will not be saved into the 3dm file.
The Id of the newly added object or Guid.Empty on failure.

AddText

#Since v5.0
public Guid AddText(TextEntity text, ObjectAttributes attributes)
Adds a text object to the document.
text (TextEntity)Text object to add.
attributes (ObjectAttributes)
The Id of the newly added object or Guid.Empty on failure.

AddText

#Since v5.0
public Guid AddText(TextEntity text)
Adds a v6_TextObject to the document.
text (TextEntity)Text object to add.
The Id of the newly added object or Guid.Empty on failure.

AddTextDot

#Since v5.0
public Guid AddTextDot(string text, Point3d location, ObjectAttributes attributes)
Adds a text dot object to Rhino.
text (string)A text string.
location (Point3d)A point position.
attributes (ObjectAttributes)Attributes to apply to curve.
The Guid of the newly added object or Guid.Empty on failure.

AddTextDot

#Since v5.0
public Guid AddTextDot(string text, Point3d location)
Adds a text dot object to Rhino.
text (string)A text string.
location (Point3d)A point position.
A unique identifier for the object.

AddTextDot

#Since v5.0
public Guid AddTextDot(TextDot dot, ObjectAttributes attributes, HistoryRecord history, bool reference)
dot (TextDot)
attributes (ObjectAttributes)
history (HistoryRecord)
reference (bool)

AddTextDot

#Since v5.0
public Guid AddTextDot(TextDot dot, ObjectAttributes attributes)
Adds a text dot object to Rhino.
dot (TextDot)A text dot that will be copied.
attributes (ObjectAttributes)Attributes to apply to text dot.
The Guid of the newly added object or Guid.Empty on failure.

AddTextDot

#Since v5.0
public Guid AddTextDot(TextDot dot)
Adds a text dot object to Rhino.
dot (TextDot)A text dot that will be copied.
A unique identifier for the object.

AllObjectsSince

#Since v5.0
[CLSCompliant(false)] public RhinoObject[] AllObjectsSince(uint runtimeSerialNumber)
Gets all the objects that have been added to the document since a given runtime serial number.
runtimeSerialNumber (uint)Runtime serial number of the last object not to include in the list.
An array of objects or null if no objects were added since the given runtime serial number.

AnySelectedObjects

#Since v9.0
public bool AnySelectedObjects(out bool referenceObjectSelected, out bool referenceBlockSelected)
Fast existence test for the current selection, with a reference breakdown, that does NOT materialize the selected objects. This is equivalent to testing whether FindByFilter(ObjectEnumeratorSettings) with NormalObjects, ActiveObjects, ReferenceObjects, IncludeLights and SelectedObjectsFilter would return any objects (and whether any of them are reference objects / reference blocks), but it uses the fast selection iterator and stops at the first match instead of building a RhinoObject[] of the entire selection. Intended for selection-change UI guards (e.g. the Layers panel).
referenceObjectSelected (out bool)Set to true if any selected object is a reference object.
referenceBlockSelected (out bool)Set to true if any selected reference object is a block (instance reference).
true if any object is selected.

Clear

public void Clear()
Marks all items as deleted.
inherited fromCommonComponentTable<T>

Delete

#Since v5.0
public bool Delete(Guid objectId, bool quiet)
Deletes object from document. The deletion can be undone by calling UndeleteObject().
objectId (Guid)Id of the object to delete.
quiet (bool)If false, a message box will appear when an object cannot be deleted.
true on success, false on failure.

Delete

#Since v6.0
public bool Delete(ObjRef objref, bool quiet, bool ignoreModes)
Deletes objref.Object(). The deletion can be undone by calling UndeleteObject().
objref (ObjRef)objref.Object() will be deleted.
quiet (bool)If false, a message box will appear when an object cannot be deleted.
ignoreModes (bool)If true, locked and hidden objects are deleted. If false objects that are locked, hidden, or on locked or hidden layers are not deleted.
true on success, false on failure.

Delete

#Since v5.0
public bool Delete(ObjRef objref, bool quiet)
Deletes objref.Object(). The deletion can be undone by calling UndeleteObject().
objref (ObjRef)objref.Object() will be deleted.
quiet (bool)If false, a message box will appear when an object cannot be deleted.
true on success, false on failure.

Delete

#Since v6.0
public override bool Delete(RhinoObject item)
Deletes an object, taking into account modes and not showing error message boxes.
item (RhinoObject)The object to delete.
True on success.

Delete

#Since v6.0
public bool Delete(RhinoObject obj, bool quiet, bool ignoreModes)
Deletes object from document. The deletion can be undone by calling UndeleteObject().
obj (RhinoObject)The object to delete.
quiet (bool)If false, a message box will appear when an object cannot be deleted.
ignoreModes (bool)If true, locked and hidden objects are deleted. If false objects that are locked, hidden, or on locked or hidden layers are not deleted.
true on success, false on failure.

Delete

#Since v5.0
public bool Delete(RhinoObject obj, bool quiet)
Deletes object from document. The deletion can be undone by calling UndeleteObject().
obj (RhinoObject)The object to delete.
quiet (bool)If false, a message box will appear when an object cannot be deleted.
true on success, false on failure.

Delete

#Since v5.0
public int Delete(IEnumerable<Guid> objectIds, bool quiet)
Deletes a collection of objects from the document.
objectIds (IEnumerable<Guid>)Ids of all objects to delete.
quiet (bool)If false, a message box will appear when an object cannot be deleted.
The number of successfully deleted objects.

DeleteGrip

#Since v6.5
public bool DeleteGrip(GripObject grip)
Deletes a grip object.
grip (GripObject)The grip object to delete.
True on success.

DeleteGrip

#Since v6.5
public bool DeleteGrip(Guid gripId)
Deletes a grip object.
gripId (Guid)The id of the grip object to delete.
True on success.

DeleteGrip

#Since v6.5
public bool DeleteGrip(ObjRef gripRef)
Deletes a grip object.
gripRef (ObjRef)A reference to the grip object to delete.
True on success.

DeleteGrips

#Since v6.5
public int DeleteGrips(IEnumerable<GripObject> grips)
Deletes one or more grip objects.
grips (IEnumerable<GripObject>)The grip objects to delete.
The number of successfully deleted grip objects.

DeleteGrips

#Since v6.5
public int DeleteGrips(IEnumerable<Guid> gripIds)
Deletes one or more grip objects.
gripIds (IEnumerable<Guid>)The ids of the grip objects to delete.
The number of successfully deleted grip objects.

DeleteGrips

#Since v6.5
public int DeleteGrips(IEnumerable<ObjRef> gripRefs)
Deletes one or more grip objects.
gripRefs (IEnumerable<ObjRef>)References to the grip objects to delete.
The number of successfully deleted grip objects.

DeleteGrips

#Since v6.5
public int DeleteGrips(RhinoObject owner, IEnumerable<int> gripIndices)
Deletes one or more grip objects.
owner (RhinoObject)The owner of the grip objects.
gripIndices (IEnumerable<int>)The indices of the grip objects to delete.
The number of successfully deleted grip objects.

Duplicate

#Since v5.0
public Guid Duplicate(Guid objectId)
Same as TransformObject(objref, ON_Xform.Identity, false)
objectId (Guid)An ID to an object in the document that needs to be duplicated.
The new object ID.

Duplicate

#Since v5.0
public Guid Duplicate(ObjRef objref)
Duplicates the object that is referenced by objref.

Same as Transform(objref, Transform.Identity, false)

objref (ObjRef)A Rhino object reference to follow for object duplication.
The new object ID.

Duplicate

#Since v5.0
public Guid Duplicate(RhinoObject obj)
Duplicates the object that is referenced by obj.

Same as TransformObject(obj, Transform.Identityy, false)

obj (RhinoObject)A Rhino object to duplicate.
The new object ID.

Find

#Since v5.0
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public RhinoObject Find(Guid objectId)
Please use FindId().
objectId (Guid)Do not use this method.
Do not use this method.

Find

#Since v5.0
[CLSCompliant(false)] public RhinoObject Find(uint runtimeSerialNumber)
Use the object runtime serial number to find a rhino object in the document. This is the value stored on RhinoObject.RuntimeObjectSerialNumber. The RhinoObject constructor sets the runtime serial number and every instance of a RhinoObject class will have a unique serial number for the duration of the Rhino application. If an object is replaced with a new object, then the new object will have a different runtime serial number. Deleted objects stored in the undo list maintain their runtime serial numbers and this function will return pointers to these objects. Call RhinoObject.IsDeleted if you need to determine if the returned object is active or deleted. The runtime serial number is not saved in files.
runtimeSerialNumber (uint)Runtime serial number to search for.
Reference to the rhino object with the objectId or null if no such object could be found.

FindByCrossingWindowRegion

#Since v5.7
[CLSCompliant(false)] public RhinoObject[] FindByCrossingWindowRegion(RhinoViewport viewport, IEnumerable<Point3d> region, bool inside, ObjectType filter)
Finds objects bounded by a polyline region
viewport (RhinoViewport)viewport to use for selection
region (IEnumerable<Point3d>)list of points that define the
inside (bool)should objects returned be the ones inside of this region (or outside)
filter (ObjectType)filter down list by object type
An array of RhinoObjects that are inside of this region

FindByCrossingWindowRegion

#Since v5.8
[CLSCompliant(false)] public RhinoObject[] FindByCrossingWindowRegion(RhinoViewport viewport, Point2d screen1, Point2d screen2, bool inside, ObjectType filter)
Finds objects bounded by a region
viewport (RhinoViewport)viewport to use for selection
screen1 (Point2d)first screen corner
screen2 (Point2d)second screen corner
inside (bool)should objects returned be the ones inside of this region (or outside)
filter (ObjectType)filter down list by object type
An array of RhinoObjects that are inside of this region

FindByDrawColor

#Since v5.0
public RhinoObject[] FindByDrawColor(Color drawColor, bool includeLights)
Finds all objects whose draw color matches a given color.
drawColor (Color)The alpha value of this color is ignored.
includeLights (bool)true if lights should be included.
An array of Rhino document objects. This array can be empty.

FindByFilter

#Since v5.0
public RhinoObject[] FindByFilter(ObjectEnumeratorSettings filter)
Same as GetObjectList but converts the result to an array.
filter (ObjectEnumeratorSettings)The ObjectEnumeratorSettings filter to customize inclusion requirements.
A Rhino object array. This array can be empty but not null.

FindByGroup

#Since v5.0
public RhinoObject[] FindByGroup(int groupIndex)
Finds all RhinoObjects that are in a given group.
groupIndex (int)Index of group to search for.
An array of objects that belong to the specified group or null if no objects could be found.

FindByLayer

#Since v5.0
public RhinoObject[] FindByLayer(Layer layer)
Finds all RhinoObjects that are in a given layer.
layer (Layer)Layer to search.
Array of objects that belong to the specified group or null if no objects could be found.

FindByLayer

#ExampleSince v5.0
public RhinoObject[] FindByLayer(string layerName)
Finds all RhinoObjects that are in a given layer.
layerName (string)Name of layer to search.
Array of objects that belong to the specified group or null if no objects could be found.

FindByObjectType

#Since v5.0
[CLSCompliant(false)] public RhinoObject[] FindByObjectType(ObjectType typeFilter)
typeFilter (ObjectType)

FindByUserString

#Since v5.0
public RhinoObject[] FindByUserString(string key, string value, bool caseSensitive, bool searchGeometry, bool searchAttributes, ObjectEnumeratorSettings filter)
Finds all objects whose UserString matches the search patterns.
key (string)Search pattern for UserString keys (supported wildcards are: ? = any single character, * = any sequence of characters).
value (string)Search pattern for UserString values (supported wildcards are: ? = any single character, * = any sequence of characters).
caseSensitive (bool)If true, string comparison will be case sensitive.
searchGeometry (bool)If true, UserStrings attached to the geometry of an object will be searched.
searchAttributes (bool)If true, UserStrings attached to the attributes of an object will be searched.
filter (ObjectEnumeratorSettings)ObjectEnumeratorSettings filter used to restrict the number of objects searched.
An array of all objects whose UserString matches with the search patterns or null when no such objects could be found.

FindByUserString

#Since v5.0
[CLSCompliant(false)] public RhinoObject[] FindByUserString(string key, string value, bool caseSensitive, bool searchGeometry, bool searchAttributes, ObjectType filter)
Finds all objects whose UserString matches the search patterns.
key (string)Search pattern for UserString keys (supported wildcards are: ? = any single character, * = any sequence of characters).
value (string)Search pattern for UserString values (supported wildcards are: ? = any single character, * = any sequence of characters).
caseSensitive (bool)If true, string comparison will be case sensitive.
searchGeometry (bool)If true, UserStrings attached to the geometry of an object will be searched.
searchAttributes (bool)If true, UserStrings attached to the attributes of an object will be searched.
filter (ObjectType)Object type filter.
An array of all objects whose UserString matches with the search patterns or null when no such objects could be found.

FindByUserString

#Since v5.0
public RhinoObject[] FindByUserString(string key, string value, bool caseSensitive)
Finds all objects whose UserString matches the search patterns.
key (string)Search pattern for UserString keys (supported wildcards are: ? = any single character, * = any sequence of characters).
value (string)Search pattern for UserString values (supported wildcards are: ? = any single character, * = any sequence of characters).
caseSensitive (bool)If true, string comparison will be case sensitive.
An array of all objects whose UserString matches with the search patterns or null when no such objects could be found.

FindByWindowRegion

#Since v5.7
[CLSCompliant(false)] public RhinoObject[] FindByWindowRegion(RhinoViewport viewport, IEnumerable<Point3d> region, bool inside, ObjectType filter)
Finds objects bounded by a polyline region
viewport (RhinoViewport)viewport to use for selection
region (IEnumerable<Point3d>)list of points that define the
inside (bool)should objects returned be the ones inside of this region (or outside)
filter (ObjectType)filter down list by object type
An array of RhinoObjects that are inside of this region

FindByWindowRegion

#Since v5.8
[CLSCompliant(false)] public RhinoObject[] FindByWindowRegion(RhinoViewport viewport, Point2d screen1, Point2d screen2, bool inside, ObjectType filter)
Finds objects bounded by a polyline region
viewport (RhinoViewport)viewport to use for selection
screen1 (Point2d)first screen corner
screen2 (Point2d)second screen corner
inside (bool)should objects returned be the ones inside of this region (or outside)
filter (ObjectType)filter down list by object type
An array of RhinoObjects that are inside of this region

FindClippingPlanesForViewport

#Since v8.35
public ClippingPlaneObject[] FindClippingPlanesForViewport(RhinoViewport viewport, bool includeHidden)
Finds all of the clipping plane objects that actively clip a viewport.
viewport (RhinoViewport)The viewport in which clipping planes are searched.
includeHidden (bool)When true, clipping planes that are hidden, or that are on hidden layers, are included in the results. Such planes still clip geometry in the viewport, so pass true when you need the complete set of planes affecting what is displayed.
An array of clipping plane objects. The array can be empty but not null.

FindClippingPlanesForViewport

#Since v5.0
public ClippingPlaneObject[] FindClippingPlanesForViewport(RhinoViewport viewport)
Finds all of the visible clipping plane objects that actively clip a viewport.
Remarks: Hidden clipping planes, and clipping planes on hidden layers, are not included in the results even though they continue to clip geometry in the viewport. Call FindClippingPlanesForViewport(RhinoViewport, bool) with includeHidden set to true to get every plane that clips the viewport.
viewport (RhinoViewport)The viewport in which clipping planes are searched.
An array of clipping plane objects. The array can be empty but not null.

FindGeometry

#Since v6.0
public GeometryBase FindGeometry(Guid id)
Same as FindId, but returns the Geometry property directly, if it exists.
id (Guid)ID of object to search for.
Reference to the geometry in the rhino object with the objectId or null if no such object could be found.

FindId

#Since v6.0
public override RhinoObject FindId(Guid id)

Uses the object guid to find a rhino object. Deleted objects cannot be found by id. The guid is the value that is stored on RhinoObject.Id

In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits it's guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
id (Guid)ID of object to search for.
Reference to the rhino object with the objectId or null if no such object could be found.

GetEnumerator

#Since v5.0
public override IEnumerator<RhinoObject> GetEnumerator()

GetObjectIdList

#Since v8.25
public IEnumerable<Guid> GetObjectIdList(ObjectEnumeratorSettings settings)
Returns an enumerable based on a ObjectEnumeratorSettings filter.
settings (ObjectEnumeratorSettings)The ObjectEnumeratorSettings settings.
The enumerable.

GetObjectList

#
public IEnumerable<RhinoObject> GetObjectList(ObjectEnumeratorSettings settings)
Returns an enumerable based on a ObjectEnumeratorSettings filter.
settings (ObjectEnumeratorSettings)The ObjectEnumeratorSettings settings.
The enumerable.

GetObjectList

#Since v5.0
[CLSCompliant(false)] public IEnumerable<RhinoObject> GetObjectList(ObjectType typeFilter)
typeFilter (ObjectType)

GetObjectList

#ExampleSince v5.0
public IEnumerable<RhinoObject> GetObjectList(Type typeFilter)
typeFilter (Type)

GetObjectsByType<T>

#Since v6.0
public IEnumerable<T> GetObjectsByType<T>()
Returns Rhino object by type.
The enumerable.

GetObjectsByType<T>

#Since v6.0
public IEnumerable<T> GetObjectsByType<T>(ObjectEnumeratorSettings settings)
Returns Rhino object by type.
settings (ObjectEnumeratorSettings)
The enumerable.

GetSelectedObjectCount

#Since v8.10
[CLSCompliant(false)] public uint GetSelectedObjectCount(bool checkSubObjects)
Compute the current number of selected objects
checkSubObjects (bool)Check to see if subobjects are selected

GetSelectedObjects

#Since v5.0
public IEnumerable<RhinoObject> GetSelectedObjects(bool includeLights, bool includeGrips)
includeLights (bool)
includeGrips (bool)

GetSelectedObjectTypes

#Since v6.0
[CLSCompliant(false)] public ObjectType GetSelectedObjectTypes()
What geometry types are currently selected

GripUpdate

#Since v5.0
public RhinoObject GripUpdate(RhinoObject obj, bool deleteOriginal)
Altered grip positions on a RhinoObject are used to calculate an updated object that is added to the document.
obj (RhinoObject)object with modified grips to update.
deleteOriginal (bool)if true, obj is deleted from the document.
new RhinoObject on success; otherwise null.

Hide

#Since v8.32
public bool Hide(Guid objectId, bool ignoreLayerMode, string hideGroup)
objectId (Guid)
ignoreLayerMode (bool)
hideGroup (string)

Hide

#Since v5.0
public bool Hide(Guid objectId, bool ignoreLayerMode)
If Object().IsNormal() is true, then the object will be hidden.
objectId (Guid)Id of object to hide.
ignoreLayerMode (bool)if true, the object will be hidden even if it is on a layer that is locked or off.
true if the object was successfully hidden.

Hide

#Since v8.0
public bool Hide(ObjRef objref, bool ignoreLayerMode, string hideGroup)
Hides object that is referenced by objref and optionally assigns it to a hide group. If objref.Object().IsNormal() is true, then the object will be hidden.
objref (ObjRef)reference to object to hide.
ignoreLayerMode (bool)if true, the object will be hidden even if it is on a layer that is locked or off.
hideGroup (string)name of the hide group to attach to the hidden object. If null or empty, no hide group is assigned.
true if the object was successfully hidden.

Hide

#Since v5.0
public bool Hide(ObjRef objref, bool ignoreLayerMode)
If objref.Object().IsNormal() is true, then the object will be hidden.
objref (ObjRef)reference to object to hide.
ignoreLayerMode (bool)if true, the object will be hidden even if it is on a layer that is locked or off.
true if the object was successfully hidden.

Hide

#Since v8.32
public bool Hide(RhinoObject obj, bool ignoreLayerMode, string hideGroup)
obj (RhinoObject)
ignoreLayerMode (bool)
hideGroup (string)

Hide

#Since v5.0
public bool Hide(RhinoObject obj, bool ignoreLayerMode)
If obj.IsNormal() is true, then the object will be hidden.
obj (RhinoObject)object to hide.
ignoreLayerMode (bool)if true, the object will be hidden even if it is on a layer that is locked or off.
true if the object was successfully hidden.

InvalidateBoundingBox

#Since v8.8
public void InvalidateBoundingBox()
Destroys the cached scene bounding box so that it will be regenerated again from scratch next time the view is regenerated

Lock

#Since v5.0
public bool Lock(Guid objectId, bool ignoreLayerMode)
If objref.Object().IsNormal() is true, then the object will be locked.
objectId (Guid)Id of normal object to lock.
ignoreLayerMode (bool)if true, the object will be locked even if it is on a layer that is locked or off.
true if the object was successfully locked.

Lock

#Since v5.0
public bool Lock(ObjRef objref, bool ignoreLayerMode)
If objref.Object().IsNormal() is true, then the object will be locked.
objref (ObjRef)reference to normal object to lock.
ignoreLayerMode (bool)if true, the object will be locked even if it is on a layer that is locked or off.
true if the object was successfully locked.

Lock

#Since v5.0
public bool Lock(RhinoObject obj, bool ignoreLayerMode)
If obj.IsNormal() is true, then the object will be locked.
obj (RhinoObject)normal object to lock.
ignoreLayerMode (bool)if true, the object will be locked even if it is on a layer that is locked or off.
true if the object was successfully locked.

ModifyAttributes

#Since v5.0
public bool ModifyAttributes(Guid objectId, ObjectAttributes newAttributes, bool quiet)
Modifies an object's attributes. Cannot be used to change object id.
objectId (Guid)Id of object to modify.
newAttributes (ObjectAttributes)new attributes.
quiet (bool)if true, then warning message boxes are disabled.
true if successful.

ModifyAttributes

#Since v5.0
public bool ModifyAttributes(ObjRef objref, ObjectAttributes newAttributes, bool quiet)
Modifies an object's attributes. Cannot be used to change object id.
objref (ObjRef)reference to object to modify.
newAttributes (ObjectAttributes)new attributes.
quiet (bool)if true, then warning message boxes are disabled.
true if successful.

ModifyAttributes

#Since v5.0
public bool ModifyAttributes(RhinoObject obj, ObjectAttributes newAttributes, bool quiet)
Modifies an object's attributes. Cannot be used to change object id.
obj (RhinoObject)object to modify.
newAttributes (ObjectAttributes)new attributes.
quiet (bool)if true, then warning message boxes are disabled.
true if successful.

ModifyRenderMaterial

#Since v5.7
public bool ModifyRenderMaterial(Guid objectId, RenderMaterial material)
Modifies an object's render material assignment, this will set the objects material source to ObjectMaterialSource.MaterialFromObject.
objectId (Guid)Id of object to modify.
material (RenderMaterial)Material to assign to this object.
Returns true on success otherwise returns false.

ModifyRenderMaterial

#Since v5.7
public bool ModifyRenderMaterial(ObjRef objRef, RenderMaterial material)
Modifies an object's render material assignment, this will set the objects material source to ObjectMaterialSource.MaterialFromObject.
objRef (ObjRef)Object to modify.
material (RenderMaterial)Material to assign to this object.
Returns true on success otherwise returns false.

ModifyRenderMaterial

#Since v5.7
public bool ModifyRenderMaterial(RhinoObject obj, RenderMaterial material)
Modifies an object's render material assignment, this will set the objects material source to ObjectMaterialSource.MaterialFromObject.
obj (RhinoObject)Object to modify.
material (RenderMaterial)Material to assign to this object.
Returns true on success otherwise returns false.

ModifyTextureMapping

#Since v5.7
public bool ModifyTextureMapping(Guid objId, int channel, TextureMapping mapping)
objId (Guid)
channel (int)
mapping (TextureMapping)

ModifyTextureMapping

#Since v5.7
public bool ModifyTextureMapping(ObjRef objRef, int channel, TextureMapping mapping)
objRef (ObjRef)
channel (int)
mapping (TextureMapping)

ModifyTextureMapping

#Since v5.7
public bool ModifyTextureMapping(RhinoObject obj, int channel, TextureMapping mapping)
obj (RhinoObject)
channel (int)
mapping (TextureMapping)

MostRecentObject

#Since v5.0
public RhinoObject MostRecentObject()
Gets the most recently added object that is still in the Document.
The most recent (non-deleted) object in the document, or null if no such object exists.

ObjectCount

#
public int ObjectCount(ObjectEnumeratorSettings filter)
Returns the number objects that pass a filter.
filter (ObjectEnumeratorSettings)The ObjectEnumeratorSettings filter.
The number of objects that pass the filter.

PickObjects

#Since v6.0
public ObjRef[] PickObjects(PickContext pickContext)
Pick one or more objects based on a given pick context
pickContext (PickContext)settings used to define what is picked
zero or more objects

Purge

#Since v5.0
public bool Purge(RhinoObject rhinoObject)
Removes object from document and deletes the pointer. Typically you will want to call Delete instead in order to keep the object on the undo list.
rhinoObject (RhinoObject)A Rhino object that will be deleted.
true if the object was purged; otherwise false.

Purge

#Since v5.0
[CLSCompliant(false)] public bool Purge(uint runtimeSerialNumber)
Removes object from document and deletes the pointer. Typically you will want to call Delete instead in order to keep the object on the undo list.
runtimeSerialNumber (uint)A runtime serial number of the object that will be deleted.
true if the object was purged; otherwise false.

Replace

#Since v5.0
public bool Replace(Guid objectId, Arc arc)
Replaces one object with new curve object.
objectId (Guid)Id of object to be replaced.
arc (Arc)new arc to be added. The arc is copied.
true if successful.

Replace

#Since v6.1
public bool Replace(Guid objectId, Brep brep, bool splitKinkySurfaces)
objectId (Guid)
brep (Brep)
splitKinkySurfaces (bool)

Replace

#Since v5.0
public bool Replace(Guid objectId, Brep brep)
Replaces one object with new brep object.
objectId (Guid)Id of object to be replaced.
brep (Brep)new surface to be added A duplicate of the brep is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Circle circle)
Replaces one object with new curve object.
objectId (Guid)Id of object to be replaced.
circle (Circle)new circle to be added. The circle is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Curve curve)
Replaces one object with new curve object.
objectId (Guid)Id of object to be replaced.
curve (Curve)New curve to be added. A duplicate of the curve is added to the Rhino model.
true if successful.

Replace

#Since v6.0
public bool Replace(Guid objectId, Extrusion extrusion)
Replaces one object with new extrusion object.
objectId (Guid)Id of object to be replaced.
extrusion (Extrusion)New extrusion to be added. A duplicate of the extrusion is added to the Rhino model.
true if successful.

Replace

#Since v7.9
public bool Replace(Guid objectId, GeometryBase geometry, bool ignoreModes)
Replaces the geometry in one object.
objectId (Guid)Id of object to be replaced.
geometry (GeometryBase)
ignoreModes (bool)
true if successful.

Replace

#Since v6.1
public bool Replace(Guid objectId, Hatch hatch)
Replaces one object with new hatch object.
objectId (Guid)Id of object to be replaced.
hatch (Hatch)new hatch to be added. The hatch is copied.
true if successful.

Replace

#Since v6.0
public bool Replace(Guid objectId, Leader leader)
Replaces one object with new text object.
objectId (Guid)Id of object to be replaced.
leader (Leader)new leader to be added. The leader is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Line line)
Replaces one object with new line curve object.
objectId (Guid)Id of object to be replaced.
line (Line)new line to be added. The line is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Mesh mesh)
Replaces one object with new mesh object.
objectId (Guid)Id of object to be replaced.
mesh (Mesh)new mesh to be added A duplicate of the mesh is added to the Rhino model.
true if successful.

Replace

#Since v6.0
public bool Replace(Guid objectId, Point point)
Replaces one object with new point object.
objectId (Guid)Id of object to be replaced.
point (Point)new point to be added. The point is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Point3d point)
Replaces one object with new point object.
objectId (Guid)Id of object to be replaced.
point (Point3d)new point to be added. The point is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, PointCloud pointcloud)
Replaces one object with new point cloud object.
objectId (Guid)Id of object to be replaced.
pointcloud (PointCloud)new point cloud to be added A duplicate of the point cloud is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Polyline polyline)
Replaces one object with new curve object.
objectId (Guid)Id of object to be replaced.
polyline (Polyline)new polyline to be added. The polyline is copied.
true if successful.

Replace

#Since v7.0
public bool Replace(Guid objectId, SubD subD)
Replaces one object with new subd object.
objectId (Guid)Id of object to be replaced.
subD (SubD)new mesh to be added A duplicate of the mesh is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, Surface surface)
Replaces one object with new surface object.
objectId (Guid)Id of object to be replaced.
surface (Surface)new surface to be added A duplicate of the surface is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, TextDot dot)
Replaces one object with new text dot object.
objectId (Guid)Id of object to be replaced.
dot (TextDot)new text dot to be added. The text dot is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(Guid objectId, TextEntity text)
Replaces one object with new text object.
objectId (Guid)Id of object to be replaced.
text (TextEntity)new text to be added. The text is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Arc arc)
Replaces one object with new curve object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
arc (Arc)new arc to be added. The arc is copied.
true if successful.

Replace

#Since v6.1
public bool Replace(ObjRef objref, Brep brep, bool splitKinkySurfaces)
objref (ObjRef)
brep (Brep)
splitKinkySurfaces (bool)

Replace

#Since v5.0
public bool Replace(ObjRef objref, Brep brep)
Replaces one object with new brep object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
brep (Brep)new brep to be added A duplicate of the brep is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Circle circle)
Replaces one object with new curve object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
circle (Circle)new circle to be added. The circle is copied.
true if successful.

Replace

#ExampleSince v5.0
public bool Replace(ObjRef objref, Curve curve)
Replaces one object with new curve object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
curve (Curve)New curve to be added. A duplicate of the curve is added to the Rhino model.
true if successful.

Replace

#Since v6.0
public bool Replace(ObjRef objref, Extrusion extrusion)
Replaces one object with new extrusion object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
extrusion (Extrusion)New extrusion to be added. A duplicate of the extrusion is added to the Rhino model.
true if successful.

Replace

#Since v7.9
public bool Replace(ObjRef objref, GeometryBase geometry, bool ignoreModes)
Replaces the geometry in one object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
geometry (GeometryBase)
ignoreModes (bool)
true if successful.

Replace

#Since v6.1
public bool Replace(ObjRef objref, Hatch hatch)
Replaces one object with new hatch object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
hatch (Hatch)new hatch to be added. The hatch is copied.
true if successful.

Replace

#Since v6.0
public bool Replace(ObjRef objref, Leader leader)
Replaces one object with new text object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
leader (Leader)new leader to be added. The leader is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Line line)
Replaces one object with new line curve object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
line (Line)new line to be added. The line is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Mesh mesh)
Replaces one object with new mesh object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
mesh (Mesh)new mesh to be added A duplicate of the mesh is added to the Rhino model.
true if successful.

Replace

#Since v6.0
public bool Replace(ObjRef objref, Point point)
Replaces one object with new point object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
point (Point)new point to be added. The point is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Point3d point)
Replaces one object with new point object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
point (Point3d)new point to be added. The point is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, PointCloud pointcloud)
Replaces one object with new point cloud object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
pointcloud (PointCloud)new point cloud to be added A duplicate of the point cloud is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Polyline polyline)
Replaces one object with new curve object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
polyline (Polyline)new polyline to be added. The polyline is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, RhinoObject newObject)
Replaces one object with another. Conceptually, this function is the same as calling Setting new_object attributes = old_object attributes DeleteObject(old_object); AddObject(old_object);
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
newObject (RhinoObject)new replacement object - must not be in document.
true if successful.

Replace

#Since v7.0
public bool Replace(ObjRef objref, SubD subD)
Replaces one object with a new SubD object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
subD (SubD)new SubD to be added A duplicate of the SubD is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, Surface surface)
Replaces one object with new surface object.
objref (ObjRef)reference to old object to be replaced. The objref.Object() will be deleted.
surface (Surface)new surface to be added A duplicate of the surface is added to the Rhino model.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, TextDot dot)
Replaces one object with new text dot object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
dot (TextDot)new text dot to be added. The text dot is copied.
true if successful.

Replace

#Since v5.0
public bool Replace(ObjRef objref, TextEntity text)
Replaces one object with new text object.
objref (ObjRef)Reference to old object to be replaced. The object objref.Object() will be deleted.
text (TextEntity)new text to be added. The text is copied.
true if successful.

ReplaceInstanceObject

#Since v6.8
public bool ReplaceInstanceObject(Guid objectId, int instanceDefinitionIndex)
Replaces the underlying instance definition of an instance object.
objectId (Guid)Id of the instance object to be replaced.
instanceDefinitionIndex (int)The index of the new instance definition to use.
true if successful.

ReplaceInstanceObject

#Since v6.8
public bool ReplaceInstanceObject(ObjRef objref, int instanceDefinitionIndex)
Replaces the underlying instance definition of an instance object.
objref (ObjRef)Reference to the instance object to be replaced. The objref.Object() will be deleted.
instanceDefinitionIndex (int)The index of the new instance definition to use.
true if successful.

Select

#Since v5.0
public bool Select(Guid objectId, bool select, bool syncHighlight, bool persistentSelect, bool ignoreGripsState, bool ignoreLayerLocking, bool ignoreLayerVisibility)
Select or deselects a single object.
objectId (Guid)Id of object to select.
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect (bool)Objects that are persistently selected stay selected when a command terminates.
ignoreGripsState (bool)If true, then objects with grips on can be selected. If false, then the value returned by the object's IsSelectableWithGripsOn() function decides if the object can be selected when it has grips turned on.
ignoreLayerLocking (bool)If true, then objects on locked layers can be selected.
ignoreLayerVisibility (bool)If true, then objects on hidden layers can be selectable.
true on success, false on failure.

Select

#Since v5.0
public bool Select(Guid objectId, bool select, bool syncHighlight, bool persistentSelect)
Select or deselects a single object.
objectId (Guid)Id of object to select.
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect (bool)Objects that are persistently selected stay selected when a command terminates.
true on success, false on failure.

Select

#Since v5.0
public bool Select(Guid objectId, bool select, bool syncHighlight)
Select or deselects a single object.
objectId (Guid)Id of object to select.
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
true on success, false on failure.

Select

#Since v5.0
public bool Select(Guid objectId, bool select)
Select or deselects a single object.
objectId (Guid)Id of object to select.
select (bool)If true, the object will be selected, if false, it will be deselected.
true on success, false on failure.

Select

#ExampleSince v5.0
public bool Select(Guid objectId)
Select a single object.
objectId (Guid)Id of object to select.
true on success, false on failure.

Select

#Since v5.0
public bool Select(ObjRef objref, bool select, bool syncHighlight, bool persistentSelect, bool ignoreGripsState, bool ignoreLayerLocking, bool ignoreLayerVisibility)
Select or deselects a single object.
objref (ObjRef)Object represented by this ObjRef is selected.
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect (bool)Objects that are persistently selected stay selected when a command terminates.
ignoreGripsState (bool)If true, then objects with grips on can be selected. If false, then the value returned by the object's IsSelectableWithGripsOn() function decides if the object can be selected when it has grips turned on.
ignoreLayerLocking (bool)If true, then objects on locked layers can be selected.
ignoreLayerVisibility (bool)If true, then objects on hidden layers can be selectable.
true on success, false on failure.

Select

#Since v5.0
public bool Select(ObjRef objref, bool select, bool syncHighlight, bool persistentSelect)
Select or deselects a single object.
objref (ObjRef)Object represented by this ObjRef is selected.
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect (bool)Objects that are persistently selected stay selected when a command terminates.
true on success, false on failure.

Select

#Since v5.0
public bool Select(ObjRef objref, bool select, bool syncHighlight)
Select or deselects a single object.
objref (ObjRef)Object represented by this ObjRef is selected.
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
true on success, false on failure.

Select

#Since v5.0
public bool Select(ObjRef objref, bool select)
Select or deselects a single object.
objref (ObjRef)Object represented by this ObjRef is selected.
select (bool)If true, the object will be selected, if false, it will be deselected.
true on success, false on failure.

Select

#Since v5.0
public bool Select(ObjRef objref)
Select a single object.
objref (ObjRef)Object represented by this ObjRef is selected.
true on success, false on failure.

Select

#Since v9.0
public int Select(IEnumerable<Guid> objectIds, bool select, bool syncHighlight, bool persistentSelect, bool ignoreGripsState, bool ignoreLayerLocking, bool ignoreLayerVisibility)
Select or deselect a colletion of objects.
objectIds (IEnumerable<Guid>)
select (bool)If true, the object will be selected, if false, it will be deselected.
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect (bool)Objects that are persistently selected stay selected when a command terminates.
ignoreGripsState (bool)If true, then objects with grips on can be selected. If false, then the value returned by the object's IsSelectableWithGripsOn() function decides if the object can be selected when it has grips turned on.
ignoreLayerLocking (bool)If true, then objects on locked layers can be selected.
ignoreLayerVisibility (bool)If true, then objects on hidden layers can be selectable.
Number of objects successfully selected or deselected.

Select

#Since v5.0
public int Select(IEnumerable<Guid> objectIds, bool select)
Selects or deselects a collection of objects.
objectIds (IEnumerable<Guid>)Ids of objects to select or deselect.
select (bool)If true, objects will be selected. If false, objects will be deselected.
Number of objects successfully selected or deselected.

Select

#ExampleSince v5.0
public int Select(IEnumerable<Guid> objectIds)
Selects a collection of objects.
objectIds (IEnumerable<Guid>)Ids of objects to select.
Number of objects successfully selected.

Select

#Since v5.0
public int Select(IEnumerable<ObjRef> objRefs, bool select)
Selects or deselects a collection of objects.
objRefs (IEnumerable<ObjRef>)References to objects to select or deselect.
select (bool)If true, objects will be selected. If false, objects will be deselected.
Number of objects successfully selected or deselected.

Select

#Since v5.0
public int Select(IEnumerable<ObjRef> objRefs)
Selects a collection of objects.
objRefs (IEnumerable<ObjRef>)References to objects to select.
Number of objects successfully selected.

SelectedObjectsExist

#Since v8.10
[CLSCompliant(false)] public bool SelectedObjectsExist(ObjectType objectType, bool checkSubObjects)
Quick way to test if any objects are currently selected
objectType (ObjectType)the type of objects to test for
checkSubObjects (bool)Check to see if subobjects are selected

SelectGrips

#Since v9.0
public int SelectGrips(IEnumerable<GripObject> grips, bool select, bool syncHighlight, bool persistentSelect)
Selects or deselects a collection of grips in one pass, so a native CRhinoOnChangeObjectSelectState watcher sees one change rather than one per grip.
Remarks: RhinoDoc.SelectObjects and RhinoDoc.DeselectObjects do not report grips whichever way they are selected; the old event watchers have filtered grips out since Rhino 5 because grip pointers do not outlive the selection.
grips (IEnumerable<GripObject>)Grips to select or deselect, from RhinoObject.GetGrips(). They may belong to several objects. Grips whose owner has since had its grips turned off, and anything in the collection that is not a grip, are skipped. null selects nothing, which is what RhinoObject.GetGrips() hands back for an object with no grips.
select (bool)If true, the grips will be selected, otherwise deselected.
syncHighlight (bool)If true, then a grip is highlighted if it is selected and unhighlighted if it is not.
persistentSelect (bool)Grips that are persistently selected stay selected when a command terminates.
Number of grips successfully selected or deselected.

SelectGrips

#Since v9.0
public int SelectGrips(IEnumerable<GripObject> grips, bool select)
Selects or deselects a collection of grips in one pass, so a native CRhinoOnChangeObjectSelectState watcher sees one change rather than one per grip.
Remarks: RhinoDoc.SelectObjects and RhinoDoc.DeselectObjects do not report grips whichever way they are selected; the old event watchers have filtered grips out since Rhino 5 because grip pointers do not outlive the selection.
grips (IEnumerable<GripObject>)Grips to select or deselect, from RhinoObject.GetGrips(). They may belong to several objects. Grips whose owner has since had its grips turned off, and anything in the collection that is not a grip, are skipped. null selects nothing, which is what RhinoObject.GetGrips() hands back for an object with no grips.
select (bool)If true, the grips will be selected, otherwise deselected.
Number of grips successfully selected or deselected.

SetSelectedObjects

#Since v9.0
public int SetSelectedObjects(IEnumerable<Guid> objectIds, bool syncHighlight, bool persistentSelect, bool ignoreGripsState, bool ignoreLayerLocking, bool ignoreLayerVisibility)
Set object selection.
Remarks: This method clears current selection before set the new one.
objectIds (IEnumerable<Guid>)
syncHighlight (bool)If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect (bool)Objects that are persistently selected stay selected when a command terminates.
ignoreGripsState (bool)If true, then objects with grips on can be selected. If false, then the value returned by the object's IsSelectableWithGripsOn() function decides if the object can be selected when it has grips turned on.
ignoreLayerLocking (bool)If true, then objects on locked layers can be selected.
ignoreLayerVisibility (bool)If true, then objects on hidden layers can be selectable.
Number of objects successfully selected.

Show

#Since v5.0
public bool Show(Guid objectId, bool ignoreLayerMode)
If Object().IsHidden() is true, then the object will be returned to normal (visible and selectable) mode.
objectId (Guid)Id of the normal object to show.
ignoreLayerMode (bool)if true, the object will be shown even if it is on a layer that is locked or off.
true if the object was successfully shown.

Show

#Since v5.0
public bool Show(ObjRef objref, bool ignoreLayerMode)
If objref.Object().IsHidden() is true, then the object will be returned to normal (visible and selectable) mode.
objref (ObjRef)reference to normal object to show.
ignoreLayerMode (bool)if true, the object will be shown even if it is on a layer that is locked or off.
true if the object was successfully shown.

Show

#Since v5.0
public bool Show(RhinoObject obj, bool ignoreLayerMode)
If obj.IsHidden() is true, then the object will be returned to normal (visible and selectable) mode.
obj (RhinoObject)the normal object to show.
ignoreLayerMode (bool)if true, the object will be shown even if it is on a layer that is locked or off.
true if the object was successfully shown.
item (RhinoObject)

Transform

#Since v5.0
public Guid Transform(Guid objectId, Transform xform, bool deleteOriginal)
Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.
Remarks: If the object is locked or on a locked layer, then it cannot be transformed.
objectId (Guid)Id of rhino object to transform. This object will be deleted if deleteOriginal is true.
xform (Transform)transformation to apply.
deleteOriginal (bool)if true, the original object is deleted if false, the original object is not deleted.
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

Transform

#ExampleSince v5.0
public Guid Transform(ObjRef objref, Transform xform, bool deleteOriginal)
Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.
Remarks: If the object is locked or on a locked layer, then it cannot be transformed.
objref (ObjRef)reference to object to transform. The objref.Object() will be deleted if deleteOriginal is true.
xform (Transform)transformation to apply.
deleteOriginal (bool)if true, the original object is deleted if false, the original object is not deleted.
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

Transform

#Since v5.0
public Guid Transform(RhinoObject obj, Transform xform, bool deleteOriginal)
Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.
Remarks: If the object is locked or on a locked layer, then it cannot be transformed.
obj (RhinoObject)Rhino object to transform. This object will be deleted if deleteOriginal is true.
xform (Transform)transformation to apply.
deleteOriginal (bool)if true, the original object is deleted if false, the original object is not deleted.
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

TransformWithHistory

#Since v5.0
public Guid TransformWithHistory(Guid objectId, Transform xform)
Constructs a new object that is the transformation of the existing object and records history of the transformation if history recording is turned on. If history recording is not enabled, this function will act the same as Transform(objectId, xform, false)
Remarks: If the object is locked or on a locked layer, then it cannot be transformed.
objectId (Guid)Id of rhino object to transform.
xform (Transform)transformation to apply.
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

TransformWithHistory

#Since v5.0
public Guid TransformWithHistory(ObjRef objref, Transform xform)
Constructs a new object that is the transformation of the existing object and records history of the transformation if history recording is turned on. If history recording is not enabled, this function will act the same as Transform(objref, xform, false)
Remarks: If the object is locked or on a locked layer, then it cannot be transformed.
objref (ObjRef)reference to object to transform.
xform (Transform)transformation to apply.
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

TransformWithHistory

#Since v5.0
public Guid TransformWithHistory(RhinoObject obj, Transform xform)
Constructs a new object that is the transformation of the existing object and records history of the transformation if history recording is turned on. If history recording is not enabled, this function will act the same as Transform(obj, xform, false)
Remarks: If the object is locked or on a locked layer, then it cannot be transformed.
obj (RhinoObject)Rhino object to transform.
xform (Transform)transformation to apply.
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

TryFindPoint

#Since v6.0
public bool TryFindPoint(Guid id, out Point3d point)
Finds the location of a point, if a point exists in the document.
id (Guid)ID of point object to search for.
point (out Point3d)The point will be passed here.
true on success; false if point was not found, id represented another geometry type, or on error.

Undelete

#Since v5.0
public bool Undelete(RhinoObject rhinoObject)
rhinoObject (RhinoObject)

Undelete

#Since v5.0
[CLSCompliant(false)] public bool Undelete(uint runtimeSerialNumber)
runtimeSerialNumber (uint)

Unlock

#Since v5.0
public bool Unlock(Guid objectId, bool ignoreLayerMode)
If Object().IsLocked() is true, then the object will be returned to normal (visible and selectable) mode.
objectId (Guid)Id of locked object to unlock.
ignoreLayerMode (bool)if true, the object will be unlocked even if it is on a layer that is locked or off.
true if the object was successfully unlocked.

Unlock

#Since v5.0
public bool Unlock(ObjRef objref, bool ignoreLayerMode)
If objref.Object().IsLocked() is true, then the object will be returned to normal (visible and selectable) mode.
objref (ObjRef)reference to locked object to unlock.
ignoreLayerMode (bool)if true, the object will be unlocked even if it is on a layer that is locked or off.
true if the object was successfully unlocked.

Unlock

#Since v5.0
public bool Unlock(RhinoObject obj, bool ignoreLayerMode)
If obj.IsLocked() is true, then the object will be returned to normal (visible and selectable) mode.
obj (RhinoObject)locked object to unlock.
ignoreLayerMode (bool)if true, the object will be unlocked even if it is on a layer that is locked or off.
true if the object was successfully unlocked.

UnselectAll

#ExampleSince v5.0
public int UnselectAll()
Unselect objects.
Number of object that were unselected.

UnselectAll

#Since v5.0
public int UnselectAll(bool ignorePersistentSelections)
Unselect objects.
ignorePersistentSelections (bool)if true, then objects that are persistently selected will not be unselected.
Number of object that were unselected.