BlockCount

Returns the number of block definitions in the document.

Syntax

rhinoscriptsyntax.BlockCount()

rhinoscript.block.BlockCount()

Parameters

None.

Returns

Number

The number of block definitions in the document.

Example

import rhinoscriptsyntax as rs

count = rs.BlockCount()

print "There are", count, " blocks."

Also See

BlockNames

IsBlock