Click or drag to resize

GH_DocumentServerAddDocument Method (String, Boolean)

Add a new document to the global list. If there already is a document with the given path, it will be made active.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public GH_Document AddDocument(
	string filepath,
	bool makeActive
)

Parameters

filepath
Type: SystemString
Filepath to document.
makeActive
Type: SystemBoolean
If true, the document will be loaded into the main canvas.

Return Value

Type: GH_Document
The document that was added or activated, or null on failure.
See Also