RVTDocs.com

IndexBuffer

Constructor
Description:
Constructs the index buffer with the given capacity, measured in short integers.
Syntax
public IndexBuffer(
	int sizeInShortInts
)
Parameters
Parameter Type Description
sizeInShortInts Int32 The number of short integers that the buffer can contain.
Return Value
Exceptions
Exception Condition
InvalidOperationException This IndexBuffer is not available because Revit is not currently rendering. In general, this IndexBuffer must be used in the scope of the RenderScene() callback of IDirectContext3DServer.