public class File3dmObjectTable : File3dmCommonComponentTable<File3dmObject>, IEnumerable<File3dmObject>
Represents a simple object table for a file that is open externally.
This class mimics Rhino.DocObjects.Tables.ObjectTable while providing external access to the file.
Properties
Returns the total amount of items in the object table, including lights.
Overrides: CommonComponentTable<T>.Count
Methods
Duplicates the object, then adds a copy of the object to the document.
Duplicates the object, then adds a copy of the object to the document.
Overrides: File3dmCommonComponentTable<T>.Add
Adds a angular dimension object to the 3dm file object table.
public Guid AddAngularDimension()
dimension,
Dimension object to add.
attributes
Attributes to apply to dimension.
Returns: A unique identifier for the object.
Adds a angular dimension object to the 3dm file object table.
Returns: A unique identifier for the object.
Adds a curve object to the document representing an arc.
Returns: A unique identifier for the object.
Adds a curve object to the document representing an arc.
Returns: A unique identifier for the object.
Adds a brep object to Rhino.
public Guid AddBrep()
brep,
A duplicate of this brep is added to Rhino.
attributes
Attributes to apply to brep.
Returns: A unique identifier for the object.
Adds a brep object to Rhino.
Returns: A unique identifier for the object.
Adds a curve object to the document representing a circle.
Returns: A unique identifier for the object.
Adds a curve object to the document representing a circle.
Returns: A unique identifier for the object.
Adds a clipping plane object to Rhino.
Returns: A unique identifier for the object.
Adds a clipping plane object to Rhino.
public Guid AddClippingPlane()
plane,
A plane.
uMagnitude,
The size in U direction.
vMagnitude,
The size in V direction.
clippedViewportIds,
list of viewport ids that the new clipping plane will clip.
attributes
Attributes to apply to point cloud.
Returns: A unique identifier for the object.
Adds a clipping plane object to Rhino.
Returns: A unique identifier for the object.
Adds a curve object to the table.
public Guid AddCurve()
curve,
A duplicate of this curve is added to Rhino.
attributes
Attributes to apply to curve.
Returns: A unique identifier for the object.
Adds a curve object to the table.
Returns: A unique identifier for the object.
Adds a curve object to the document representing an ellipse.
Returns: A unique identifier for the object.
Adds a curve object to the document representing an ellipse.
Returns: A unique identifier for the object.
Adds an extrusion object to Rhino.
public Guid AddExtrusion()
extrusion,
A duplicate of this extrusion is added to Rhino.
attributes
Attributes to link to the object.
Returns: A unique identifier for the object.
Adds an extrusion object to Rhino.
Returns: A unique identifier for the object.
Adds a hatch to the document.
Returns: A unique identifier for the hatch, or Guid.Empty on failure.
Adds an instance reference geometry object to the table.
public Guid AddInstanceObject()
instanceReference,
The instance reference geometry object.
attributes
The attributes to link with the object.
Returns: A unique identifier for the object.
Adds an instance reference geometry object to the table.
Returns: A unique identifier for the object.
Adds an instance reference geometry object to the table.
public Guid AddInstanceObject()
instanceDefinitionIndex,
The index of the instance definition geometry object.
instanceXform,
The transformation.
attributes
The object attributes.
Returns: A unique identifier for the object.
Adds an instance reference geometry object to the table.
Returns: A unique identifier for the object.
Adds an annotation leader to the document. This overload is only provided in the Rhino SDK.
Returns: A unique identifier for the object; or Guid.Empty on failure.
Adds an annotation leader to the document.
public Guid AddLeader()
plane,
A plane.
points,
A list, an array or any enumerable set of 2d points.
attributes
Attributes to apply to brep.
Returns: A unique identifier for the object; or Guid.Empty on failure.
Adds an annotation leader to the document.
Returns: A unique identifier for the object; or Guid.Empty on failure.
Adds an annotation leader to the document. This overload is only provided in the Rhino SDK.
Returns: A unique identifier for the object; or Guid.Empty on failure.
Adds an annotation leader to the document.
public Guid AddLeader()
text,
The text.
plane,
A plane.
points,
A list, an array or any enumerable set of 2d points.
attributes
Attributes to apply to brep.
Returns: A unique identifier for the object; or Guid.Empty on failure.
Adds an annotation leader to the document.
public Guid AddLeader()
text,
The text.
plane,
A plane.
points
A list, an array or any enumerable set of 2d points.
Returns: A unique identifier for the object; or Guid.Empty on failure.
Adds a line object to Rhino.
Returns: A unique identifier for the object.
Adds a line object to Rhino.
Returns: A unique identifier for the object.
Adds a line object to Rhino.
public Guid AddLine()
from,
The start point of the line.
to,
The end point of the line.
attributes
Attributes to apply to line.
Returns: A unique identifier for the object.
Adds a line object to Rhino.
Returns: A unique identifier of new rhino object.
Adds a linear dimension to the 3dm file object table.
Returns: A unique identifier for the object.
Adds a linear dimension to the 3dm file object table.
Returns: A unique identifier for the object.
Adds a mesh object to Rhino.
public Guid AddMesh()
Mesh
mesh,
A duplicate of this mesh is added to Rhino.
attributes
Attributes to link to the object.
Returns: A unique identifier for the object.
Adds a mesh object to Rhino.
Returns: A unique identifier for the object.
Adds an ordinate dimension object to the 3dm file object table.
public Guid AddOrdinateDimension()
dimension,
Dimension object to add.
attributes
Attributes to apply to dimension.
Returns: A unique identifier for the object.
Adds an ordinate dimension object to the 3dm file object table.
Returns: A unique identifier for the object.
Adds a point object to the table.
Returns: id of new object.
Adds a point object to the document.
Returns: A unique identifier for the object.
Adds a point object to the table.
Returns: Id of new object.
Adds a point object to the document.
Returns: A unique identifier for the object.
Adds a point object to the document.
Returns: A unique identifier for the object.
Adds a point cloud object to the document.
Returns: A unique identifier for the object.
Adds a point cloud object to the document.
Returns: A unique identifier for the object.
Adds a point cloud object to the document.
Returns: A unique identifier for the object.
Adds a point cloud object to the document.
Returns: A unique identifier for the object.
Adds multiple points to the document.
Returns: An array of object unique identifiers.
Adds multiple points to the document.
Returns: List of object ids.
Adds multiple points to the document.
Returns: An array of object unique identifiers.
Adds multiple points to the document.
Returns: An array of object unique identifiers.
Adds a polyline object to Rhino.
Returns: A unique identifier for the object.
Adds a polyline object to Rhino.
Returns: A unique identifier for the object.
Adds a radial dimension object to the 3dm file object table.
public Guid AddRadialDimension()
dimension,
Dimension object to add.
attributes
Attributes to apply to dimension.
Returns: A unique identifier for the object.
Adds a radial dimension object to the 3dm file object table.
Returns: A unique identifier for the object.
Adds a surface object to the document representing a sphere.
Returns: A unique identifier for the object.
Adds a surface object to the document representing a sphere.
Returns: A unique identifier for the object.
Adds a SubD to the document
Returns: A unique identifier for the SubD, or Guid.Empty on failure
Adds a surface object to Rhino.
public Guid AddSurface()
surface,
A duplicate of this surface is added to Rhino.
attributes
Attributes to link to the object.
Returns: A unique identifier for the object.
Adds a surface object to Rhino.
Returns: A unique identifier for the object.
Adds an annotation text object to the document.
Returns: The Guid of the newly added object or Guid.Empty on failure.
Adds an annotation text object to the document.
public Guid AddText()
text,
Text string.
plane,
Plane of text.
height,
Height of text.
fontName,
Name of FontFace.
bold,
Bold flag.
italic,
Italic flag.
justification,
The justification of the text.
attributes
Attributes to link to the object.
Returns: The Guid of the newly added object or Guid.Empty on failure.
Adds an annotation text object to the document.
Returns: The Guid of the newly added object or Guid.Empty on failure.
Adds an annotation text object to the document.
Returns: The Guid of the newly added object or Guid.Empty on failure.
Adds an annotation text object to the document.
Returns: The Guid of the newly added object or Guid.Empty on failure.
Adds an annotation text object to the document.
Returns: The Guid of the newly added object or Guid.Empty on failure.
Adds a text dot object to the table.
public Guid AddTextDot()
text,
The text.
location,
The location.
attributes
Attributes to link with curve.
Returns: A unique identifier for the object.
Adds a text dot object to the table.
Returns: A unique identifier for the object.
Adds a text dot object to the table.
Returns: A unique identifier for the object.
Adds a text dot object to the table.
Returns: A unique identifier for the object.
Clear
Marks all items as deleted.
public void Clear()
Deletes object from document.
Returns: true on success, false on failure.
Returns: True on success.
Overrides: CommonComponentTable<T>.Delete
Deletes a collection of objects from the document.
Returns: The number of successfully deleted objects.
Delete
Flags a component as deleted.
Returns: True on success.
Returns: A string containing the dump.
Finds all File3dmObject that are in a given group.
Returns: Array of objects that belong to the specified group or empty array if no objects could be found.
Exceptions:
| ArgumentNullException | If group is null. |
Finds all File3dmObject that are in a given layer.
Returns: Array of objects that belong to the specified layer or empty array if no objects could be found.
Exceptions:
| ArgumentNullException | If layer is null. |
Finds all File3dmObject that are in a given layer.
Returns: Array of objects that belong to the specified layer or empty array if no objects could be found.
FindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. 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 its 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.
Returns: Reference to the rhino object with the objectId or null if no such object could be found.
Implements: FindId
Gets the bounding box containing every object in this table.
Returns: The computed bounding box.
Returns an enumerator that yields all objects in this document. Like in Rhino, this includes lights. Unlike in Rhino, however, all lights are returned in the end of the list.
Returns: An enumerator that yields all objects in a document.
Overrides: CommonComponentTable<T>.GetEnumerator