Click or drag to resize

RhinoDocOpen 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)
Since: 6.0
public static RhinoDoc Open(
	string filePath,
	out bool wasAlreadyOpen


Type: SystemString
Full path to the 3dm file to open
Type: SystemBoolean
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.
See Also