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
)
Public Function AddDocument (
filepath As String,
makeActive As Boolean
) As GH_Document
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_DocumentThe document that was added or activated, or null on failure.
See Also