Skip to content

ObjectTable

Public Class

Inheritance Hierarchy

System.Object
Rhino.FileIO.CommonComponentTable. RhinoObject.
Rhino.DocObjects.Tables.RhinoDocCommonTable. RhinoObject.
Rhino.DocObjects.Tables.ObjectTable

Namespace: Rhino.DocObjects.Tables

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public sealed class ObjectTable : RhinoDocCommonTable<RhinoObject>,
ICollection<RhinoObject>, IEnumerable<RhinoObject>, IEnumerable

The ObjectTable type exposes the following members.

Properties

Name

Description


Public Property

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.


Public Property

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.


Public Property

(Overrides

.)


Public Property

Returns the count of all items, including deleted ones.

(Inherited from CommonComponentTable.T..)


Public Property

Gets the document that owns this object table.


Public Property

Returns the amount of history records in this document.


Methods

Name

Description


Public Method

Adds geometry that is not further specified.

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


Public Method

Adds geometry that is not further specified.

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


Public Method

Adds geometry that is not further specified.

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


Public Method

Adds a angular dimension object to the document.


Public Method

Adds a angular dimension object to the document.


Public Method

Adds an angular dimension object to the document.


Public Method

Adds a curve object to the document representing an arc.


Public Method

Adds a curve object to the document representing an arc.


Public Method

Public Method

Adds a box to the object table.


Public Method

Adds a box to the object table.


Public Method

Adds a box to the object table, as an extrusion.


Public Method
Code Example

Adds a brep object to Rhino.


Public Method

Adds a brep object to Rhino.


Public Method

Public Method

Public Method

Adds an ordinate dimension object to the document.


Public Method
Code Example

Adds a curve object to the document representing a circle.


Public Method

Adds a curve object to the document representing a circle.


Public Method

Public Method

Adds a clipping plane object to Rhino.


Public Method
Code Example

Adds a clipping plane object to Rhino.


Public Method

Adds a clipping plane object to Rhino.


Public Method

Public Method

Public Method

Public Method
Code Example

Adds a curve object to Rhino.


Public Method

Adds a curve object to Rhino.


Public Method

Public Method

Adds a curve object to the document representing an ellipse.


Public Method

Adds a curve object to the document representing an ellipse.


Public Method

Public Method

Public Method

Adds an extrusion object to Rhino.


Public Method

Adds an extrusion object to Rhino.


Public Method

Public Method
Code Example

Public Method

Public Method

Public Method

Adds an instance object to the document.


Public Method

Adds an instance object to the document.


Public Method

Adds an instance object to the document.


Public Method

Public Method

Adds a Leader object to the document.


Public Method

Adds Leader object to the document.


Public Method
Code Example

Public Method

Public Method

Public Method

Public Method

Adds a Leader object to the document.


Public Method

Public Method

Public Method

Adds a line object to Rhino.


Public Method

Adds a line object to Rhino.


Public Method
Code Example

Adds a line object to Rhino.


Public Method

Adds a line object to Rhino.


Public Method

Public Method
Code Example

Adds a linear dimension object to the document.


Public Method

Adds a linear dimension object to the document.


Public Method

Adds a linear dimension object to the document.


Public Method
Code Example

Adds a mesh object to Rhino.


Public Method

Adds a mesh object to Rhino.


Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Adds a point cloud object to the document.


Public Method

Adds an ordinate dimension object to the document.


Public Method

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.


Public Method
Code Example

Adds a point object to the document.


Public Method
Code Example

Adds a point object to the document.


Public Method

Adds a point object to the document.


Public Method

Adds a point object to the document.


Public Method

Adds a point object to the document.


Public Method

Adds a point object and its geometry-linked information to the document


Public Method

Adds a point object to the document


Public Method

Adds a point cloud object to the document.


Public Method

Adds a point cloud object to the document.


Public Method

Adds a point cloud object to the document.


Public Method

Adds a point cloud object to the document.


Public Method

Adds a point cloud object to the document.


Public Method

Adds a point cloud object to the document.


Public Method

Adds multiple points to the document.


Public Method

Adds multiple points to the document.


Public Method

Adds multiple points to the document.


Public Method

Adds multiple points to the document.


Public Method
Code Example

Adds a polyline object to Rhino.


Public Method

Adds a polyline object to Rhino.


Public Method

Public Method
Code Example

Public Method

Public Method

Adds a radial dimension object to the document.


Public Method

Adds a rectangle to the object table.


Public Method

Adds a rectangle to the object table.


Public Method

Adds a rectangle to the object table.


Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method
Code Example

Public Method

Public Method

Public Method

Adds a SubD object to Rhino.


Public Method

Adds a SubD object to Rhino.


Public Method

Adds a SubD object to Rhino.


Public Method
Code Example

Adds a surface object to Rhino.


Public Method

Adds a surface object to Rhino.


Public Method

Public Method
Code Example

Adds an annotation text object to the document.


Public Method

Adds a v6_TextObject to the document.


Public Method

Adds an annotation text object to the document.


Public Method

Adds a text object to the document.


Public Method

Adds a text object to the document.


Public Method
Code Example

Adds an annotation text object to the document.


Public Method

Adds an annotation text object to the document.


Public Method

Public Method

Public Method

Public Method

Public Method

Adds a text dot object to Rhino.


Public Method

Adds a text dot object to Rhino.


Public Method

Adds a text dot object to Rhino.


Public Method

Adds a text dot object to Rhino.


Public Method

Public Method

Gets all the objects that have been added to the document since a given runtime serial number.


Public Method

Marks all items as deleted.

(Inherited from CommonComponentTable.T..)


Public Method

Deletes an object, taking into account modes and not showing error message boxes.

(Overrides

.)


Public Method

Deletes object from document. The deletion can be undone by calling UndeleteObject().


Public Method

Deletes a collection of objects from the document.


Public Method

Deletes objref.Object(). The deletion can be undone by calling UndeleteObject().


Public Method

Deletes object from document. The deletion can be undone by calling UndeleteObject().


Public Method

Deletes objref.Object(). The deletion can be undone by calling UndeleteObject().


Public Method

Deletes object from document. The deletion can be undone by calling UndeleteObject().


Public Method

Deletes a grip object.


Public Method

Deletes a grip object.


Public Method

Deletes a grip object.


Public Method

Deletes one or more grip objects.


Public Method

Deletes one or more grip objects.


Public Method

Deletes one or more grip objects.


Public Method

Deletes one or more grip objects.


Public Method

Same as TransformObject(objref, ON_Xform.Identity, false)


Public Method

Duplicates the object that is referenced by objref.

Same as Transform(objref,

, false)


Public Method

Duplicates the object that is referenced by obj.

Same as TransformObject(obj,

y, false)


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method

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.


Public Method

Finds objects bounded by a polyline region


Public Method

Finds objects bounded by a region


Public Method

Finds all objects whose draw color matches a given color.


Public Method

Same as GetObjectList but converts the result to an array.


Public Method

Finds all RhinoObjects that are in a given group.


Public Method

Finds all RhinoObjects that are in a given layer.


Public Method
Code Example

Finds all RhinoObjects that are in a given layer.


Public Method

Public Method

Finds all objects whose UserString matches the search patterns.


Public Method

Finds all objects whose UserString matches the search patterns.


Public Method

Finds all objects whose UserString matches the search patterns.


Public Method

Finds objects bounded by a polyline region


Public Method

Finds objects bounded by a polyline region


Public Method

Finds all of the clipping plane objects that actively clip a viewport.


Public Method

Same as FindId, but returns the Geometry property directly, if it exists.


Public Method

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.

(Overrides

.)


Public Method

(Overrides

.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

Returns an enumerable based on a ObjectEnumeratorSettings filter.


Public Method

Public Method
Code Example

Public Method

Returns Rhino object by type.


Public Method

Returns Rhino object by type.


Public Method

Compute the current number of selected objects


Public Method

Public Method

What geometry types are currently selected


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Altered grip positions on a RhinoObject are used to calculate an updated object that is added to the document.


Public Method

If Object().IsNormal() is true, then the object will be hidden.


Public Method

If objref.Object().IsNormal() is true, then the object will be hidden.


Public Method

If obj.IsNormal() is true, then the object will be hidden.


Public Method

Destroys the cached scene bounding box so that it will be regenerated again from scratch next time the view is regenerated


Public Method

If objref.Object().IsNormal() is true, then the object will be locked.


Public Method

If objref.Object().IsNormal() is true, then the object will be locked.


Public Method

If obj.IsNormal() is true, then the object will be locked.


Public Method

Modifies an object’s attributes. Cannot be used to change object id.


Public Method

Modifies an object’s attributes. Cannot be used to change object id.


Public Method

Modifies an object’s attributes. Cannot be used to change object id.


Public Method

Modifies an object’s render material assignment, this will set the objects material source to ObjectMaterialSource.MaterialFromObject.


Public Method

Modifies an object’s render material assignment, this will set the objects material source to ObjectMaterialSource.MaterialFromObject.


Public Method

Modifies an object’s render material assignment, this will set the objects material source to ObjectMaterialSource.MaterialFromObject.


Public Method

Public Method

Public Method

Public Method

Gets the most recently added object that is still in the Document.


Public Method

Returns the number objects that pass a filter.


Public Method

Pick one or more objects based on a given pick context


Public Method

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.


Public Method

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.


Public Method

Replaces one object with new curve object.


Public Method

Replaces one object with new brep object.


Public Method

Replaces one object with new curve object.


Public Method

Replaces one object with new curve object.


Public Method

Replaces one object with new extrusion object.


Public Method

Replaces one object with new hatch object.


Public Method

Replaces one object with new text object.


Public Method

Replaces one object with new line curve object.


Public Method

Replaces one object with new mesh object.


Public Method

Replaces one object with new point object.


Public Method

Replaces one object with new point object.


Public Method

Replaces one object with new point cloud object.


Public Method

Replaces one object with new curve object.


Public Method

Replaces one object with new subd object.


Public Method

Replaces one object with new surface object.


Public Method

Replaces one object with new text dot object.


Public Method

Replaces one object with new text object.


Public Method

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);


Public Method

Replaces one object with new curve object.


Public Method

Replaces one object with new brep object.


Public Method

Replaces one object with new curve object.


Public Method
Code Example

Replaces one object with new curve object.


Public Method

Replaces one object with new extrusion object.


Public Method

Replaces one object with new hatch object.


Public Method

Replaces one object with new text object.


Public Method

Replaces one object with new line curve object.


Public Method

Replaces one object with new mesh object.


Public Method

Replaces one object with new point object.


Public Method

Replaces one object with new point object.


Public Method

Replaces one object with new point cloud object.


Public Method

Replaces one object with new curve object.


Public Method

Replaces one object with a new SubD object.


Public Method

Replaces one object with new surface object.


Public Method

Replaces one object with new text dot object.


Public Method

Replaces one object with new text object.


Public Method

Public Method

Replaces the geometry in one object.


Public Method

Public Method

Replaces the geometry in one object.


Public Method

Replaces the underlying instance definition of an instance object.


Public Method

Replaces the underlying instance definition of an instance object.


Public Method
Code Example

Select a single object.


Public Method

Selects a collection of objects.


Public Method
Code Example

Selects a collection of objects.


Public Method

Select a single object.


Public Method

Select or deselects a single object.


Public Method

Selects or deselects a collection of objects.


Public Method

Selects or deselects a collection of objects.


Public Method

Select or deselects a single object.


Public Method

Select or deselects a single object.


Public Method

Select or deselects a single object.


Public Method

Select or deselects a single object.


Public Method

Select or deselects a single object.


Public Method

Select or deselects a single object.


Public Method

Select or deselects a single object.


Public Method

Quick way to test if any objects are currently selected


Public Method

If Object().IsHidden() is true, then the object will be returned to normal (visible and selectable) mode.


Public Method

If objref.Object().IsHidden() is true, then the object will be returned to normal (visible and selectable) mode.


Public Method

If obj.IsHidden() is true, then the object will be returned to normal (visible and selectable) mode.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method
Transform(Guid, Transform, Boolean)

Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.


Public Method
Code Example
Transform(ObjRef, Transform, Boolean)

Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.


Public Method
Transform(RhinoObject, Transform, Boolean)

Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.


Public Method
TransformWithHistory(Guid, Transform)

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)


Public Method
TransformWithHistory(ObjRef, Transform)

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)


Public Method
TransformWithHistory(RhinoObject, Transform)

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)


Public Method

Finds the location of a point, if a point exists in the document.


Public Method

Public Method

Public Method

If Object().IsLocked() is true, then the object will be returned to normal (visible and selectable) mode.


Public Method

If objref.Object().IsLocked() is true, then the object will be returned to normal (visible and selectable) mode.


Public Method

If obj.IsLocked() is true, then the object will be returned to normal (visible and selectable) mode.


Public Method
Code Example

Unselect objects.


Public Method

Unselect objects.