RVTDocs.com

VertexBuffer.Unmap

Method
Description:
Unmaps the buffer, so that it can be used for rendering.
Syntax
public void Unmap()
Exceptions
Exception Condition
InvalidOperationException This VertexBuffer is not available because Revit is not currently rendering. In general, this VertexBuffer must be used in the scope of the RenderScene() callback of IDirectContext3DServer.