Skip to content

File3dm

Public Class

Represents a 3dm file, which is stored using the OpenNURBS file standard.

The 3dm format is the main Rhinoceros storage format.

Visit http://www.opennurbs.com/ for more details.

Inheritance Hierarchy

System.Object
Rhino.FileIO.File3dm

Namespace: Rhino.FileIO

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class File3dm : IDisposable

The File3dm type exposes the following members.

Constructors

Name

Description


Public Method

Initializes a new instance of a 3dm file.


Properties

Name

Description


Public Property

Dimension Styles in this file.


Public Property

Groups in this file.


Public Property

Hatch patterns in this file.


Public Property

Instance definitions in this file


Public Property

Layers in this file.


Public Property

Linetypes in this file.


Public Property

Materials in this file.


Public Property

Named construction planes in this file.


Public Property

Named views in this file.


Public Property

Views that represent the RhinoViews which are displayed when Rhino loads this file.


Public Property

Gets or sets details for the application that wrote this file.


Public Property

Gets or sets the name of the application that wrote this file.


Public Property

Gets or sets a URL for the application that wrote this file.


Public Property

Gets the 3dm file archive version.


Public Property

Get the DateTime that this file was originally created. If the value is not set in the 3dm file, then DateTime.MinValue is returned


Public Property

Gets a string that names the user who created the file.


Public Property

Obsolete.

Dimension Styles in this file.


Public Property

If set, this is the model’s location on the earth. This information is used when the model is used with GIS information.


Public Property

The embedded files in this file.


Public Property

Obsolete.

Hatch patterns in this file


Public Property

Obsolete.

Instance definitions in this file.


Public Property

Get the DateTime that this file was last edited. If the value is not set in the 3dm file, then DateTime.MinValue is returned


Public Property

Gets a string that names the user who last edited the file.


Public Property

Obsolete.

Layers in this file.


Public Property

Obsolete.

Linetypes in this file.


Public Property

Retrieves the manifest with all object descriptions in this file.


Public Property

Obsolete.

Materials in this file.


Public Property

Named construction planes in this file.


Public Property

Named views in this file.


Public Property

Gets or sets the model notes.


Public Property

Gets access to the File3dmObjectTable class associated with this file, which contains all objects.


Public Property

Custom plug-in data in this file. This data is not attached to any geometry or attributes


Public Property

The render environments in this file.


Public Property

The render materials in this file.


Public Property

The render textures in this file.


Public Property

Gets or sets the revision number.


Public Property

Settings include tolerance, and unit system, and defaults used for creating views and objects.


Public Property

Gets or sets the start section comments, which are the comments with which the 3dm file begins.


Public Property

Document user strings in this file


Public Property

Views that represent the RhinoViews which are displayed when Rhino loads this file.


Methods

Name

Description


Public Method

Obsolete.

This function is only kept for forward assembly compatibility.


Public Method

Actively reclaims unmanaged resources that this instance uses.


Protected Method

For derived class implementers.

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

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

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


Public Method

Prepares a text dump of the entire model.


Public Method

Prepares a text dump of model properties and settings.


Public Method

Prepares a text dump of the entire model.


Public Method

Equals

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

(Inherited from Object.)


Protected Method

Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

(Overrides Object.Finalize..)


Public Method
Static Member

Read a 3dm file from a byte array


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

Preview image used for file explorer


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Obsolete.

The File3dm object is kept consistent during its creation. Therefore, this function now returns only true.


Public Method

Obsolete.

The File3dm object is kept consistent during its creation. Therefore, this function now returns only true.


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Obsolete.

This function is only kept for forward assembly compatibility.


Public Method
Static Member

Reads a 3dm file from a specified location.


Public Method
Static Member

Reads a 3dm file from a specified location.


Public Method
Static Member

Reads only the application information from an existing 3dm file.


Public Method
Static Member

Reads only the archive 3dm version from an existing 3dm file.


Public Method
Static Member

Read the dimension styles table out of a 3dm file.


Public Method
Static Member

Reads only the earth anchor point from an existing 3dm file


Public Method
Static Member

Reads only the notes from an existing 3dm file.


Public Method
Static Member

Attempts to read the preview image out of a 3dm file.


Public Method
Static Member

Quickly check a file for it’s revision information. This function does not read the entire file, just what it needs to get revision information out


Public Method
Static Member

Read a 3dm file from a specified location and log any archive reading errors.


Public Method
Static Member

Reads a 3dm file from a specified location.


Public Method

Preview image used for file explorer


Public Method

Write to an in-memory byte[]


Public Method

Write to an in-memory byte[]


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

Writes contents of this model to an openNURBS archive. If the model is not valid, then Write will refuse to write it.


Public Method

Writes contents of this model to an openNURBS archive. If the model is not valid, then Write will refuse to write it.


Public Method
Static Member

Creates a simple 3dm file that contains a multiple geometric objects.


Public Method
Static Member

Creates a simple 3dm file that contains a single geometric object.


Public Method

Writes contents of this model to an openNURBS archive. If the model is not valid, then Write will refuse to write it.


Public Method

Writes contents of this model to an openNURBS archive. If the model is not valid, then Write will refuse to write it.