RVTDocs.com

VertexBuffer

Constructor
Description:
Constructs the vertex buffer with the given capacity, measured in floats.
Syntax
public VertexBuffer(
	int sizeInFloats
)
Parameters
Parameter Type Description
sizeInFloats Int32 The number of floats that the buffer can contain.
Return Value
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.