Grasshopper API
GH_DocumentServerAddDocument Method (GH_Document) |
Add a new document to the global list. If the document is already registered nothing will happen.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public void AddDocument( GH_Document document )
Public Sub AddDocument ( document As GH_Document )
Parameters
- document
- Type: Grasshopper.KernelGH_Document
Document to add.

Exception | Condition |
---|---|
ArgumentNullException | Thrown when the document is a null reference. |
InvalidOperationException | Thrown when the document doesn't have top-level rank. |
