RhinoCommon API
File3dmObjectTableAddSurface Method (Surface, ObjectAttributes) |
Adds a surface object to Rhino.
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)

public Guid AddSurface( Surface surface, ObjectAttributes attributes )
Public Function AddSurface ( surface As Surface, attributes As ObjectAttributes ) As Guid
Parameters
- surface
- Type: Rhino.GeometrySurface
A duplicate of this surface is added to Rhino. - attributes
- Type: Rhino.DocObjectsObjectAttributes
Attributes to link to the object.
Return Value
Type: GuidA unique identifier for the object.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8