GH_DocumentMergeDocument Method (GH_Document, Boolean, Boolean) |
Hoist all objects from another document into this one.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public bool MergeDocument(
GH_Document other,
bool resolveProxies,
bool removeProxies
)
Public Function MergeDocument (
other As GH_Document,
resolveProxies As Boolean,
removeProxies As Boolean
) As Boolean
Parameters
- other
- Type: Grasshopper.KernelGH_Document
The other document. Cannot be null. - resolveProxies
- Type: SystemBoolean
If True, an attempt is made to repair proxy sources after insertion. - removeProxies
- Type: SystemBoolean
If True, all remaining proxies will be deleted.
Return Value
Type:
BooleanRemarks The objects will be moved, not copied. The other document ends up being empty since objects can only belong to one document at a time.
See Also