Grasshopper API
GH_ConvertGetSurfaceFromDocument Method |
Harvest a surface object from a Rhino document.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static bool GetSurfaceFromDocument( RhinoDoc doc, Guid id, out Surface srf )
Public Shared Function GetSurfaceFromDocument ( doc As RhinoDoc, id As Guid, <OutAttribute> ByRef srf As Surface ) As Boolean
Parameters
- doc
- Type: RhinoDoc
Document to search. - id
- Type: SystemGuid
ID of surface object. - srf
- Type: Surface
Surface result.
Return Value
Type: BooleanTrue on success, false on failure.
