BlockObjectCount

Returns the number of objects that make up a block definition.

Syntax

rhinoscriptsyntax.BlockObjectCount (block_name)

rhinoscript.block.BlockObjectCount (block_name)

Parameters

block_name

Required.  String or Guid.  The name of an existing block definition.

Returns

Number

The number of objects that make up the block definition if successful.

Example

import rhinoscriptsyntax as rs

count = rs.BlockObjectCount()

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

Also See

BlockNames

BlockObjects

IsBlock