M_Rhino_RhinoDoc_Open - mcneel/rhinocommon-api-docs GitHub Wiki

RhinoDoc.Open Method

Opens a 3dm file and makes it the active document. If called on windows the active document will be saved and closed and the new document will be opened and become the active document. If called on the Mac the file will be opened in a new document window.

Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static RhinoDoc Open(
	string filePath,
	out bool wasAlreadyOpen
)

VB

Public Shared Function Open ( 
	filePath As String,
	<OutAttribute> ByRef wasAlreadyOpen As Boolean
) As RhinoDoc

Parameters

 

filePath
Type: System.String
Full path to the 3dm file to open
wasAlreadyOpen
Type: System.Boolean
Will get set to true if there is a currently open document with the specified path; otherwise it will get set to false.

Return Value

Type: RhinoDoc
Returns the newly opened document on success or null on error.

Version Information

Supported in: 5D58w

See Also

Reference

RhinoDoc Class
Rhino Namespace

⚠️ **GitHub.com Fallback** ⚠️