File3dm

class rhino3dm.File3dm
File3dm()

File3dm constructor

StartSectionComments

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

ApplicationName

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

ApplicationUrl

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

ApplicationDetails

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

CreatedBy

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

LastEditedBy

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

Revision

int: Gets or sets the revision number.

Settings

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

Objects

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

Materials

IList<Material>: Materials in this file.

Bitmaps
Layers

IList<Layer>: Layers in this file.

Groups
DimStyles

IList<DimensionStyle>: Dimension Styles in this file.

InstanceDefinitions

IList<InstanceDefinitionGeometry>: Instance definitions in this file.

Views

IList<ViewInfo>: Views that represent the RhinoViews which are displayed when Rhino loads this file.

NamedViews

IList<ViewInfo>: Named views in this file.

PlugInData

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

Strings

File3dmStringTable: Document user strings in this file

static Read(path)

Reads a 3dm file from a specified location.

Parameters:path (str) – The file to read.
Returns:new File3dm on success, None on error.
Return type:File3dm
static ReadNotes(path)

Reads only the notes from an existing 3dm file.

Parameters:path (str) – The file from which to read the notes.
Returns:The 3dm file notes.
Return type:str
static ReadArchiveVersion(path)

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

Parameters:path (str) – The file from which to read the archive version.
Returns:The 3dm file archive version.
Return type:int
static FromByteArray()

Read a 3dm file from a byte array

Returns:New File3dm on success, None on error.
Return type:File3dm
Write(path, version)

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

Parameters:
  • path (str) – The file name to use for writing.
  • version (int) – Version of the openNURBS archive to write. Must be [2; current version]. Rhino can read its current version, plus earlier file versions except 1. Use latest version when possible. Alternatively, 0 is a placeholder for the last valid version.
Returns:

True if archive is written with no error. False if errors occur.

Return type:

bool

Encode()

[todo] add documentation

Encode()

[todo] add documentation

Decode()

[todo] add documentation

EmbeddedFilePaths()

[todo] add documentation

GetEmbeddedFileAsBase64()

[todo] add documentation

GetEmbeddedFileAsBase64()

[todo] add documentation

RdkXml()

[todo] add documentation