Returns the number of objects that make up a block definition.
rhinoscriptsyntax.BlockObjectCount (block_name)
rhinoscript.block.BlockObjectCount (block_name)
block_name |
Required. String or Guid. The name of an existing block definition. |
Number |
The number of objects that make up the block definition if successful. |
import rhinoscriptsyntax as rs
count = rs.BlockObjectCount()
print "There are", count, " blocks."