RVTDocs.com

IndexBuffer.Map

Method
Description:
Maps a portion of the index buffer into memory, so that indices can be written into it. see .
Syntax
public void Map(
	int sizeInShortInts
)
Parameters
Parameter Type Description
sizeInShortInts Int32 The size of the part of the buffer to be mapped, measured in short integers. Must be less than or equal to the size of the <a href="186f6b15-38c7-cee7-6163-396cfdea43ee.htm">IndexBuffer</a>
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. -or- Thrown if the buffer is smaller than sizeInShortInts.