BlockObjectCount

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

Syntax

Rhino.BlockObjectCount (strBlock)

Parameters

strBlock

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

Returns

Number

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

Null

If not successful, or on error.

Example

Dim intCount

intCount = Rhino.BlockObjectCount

Rhino.Print "There are " & CStr(intCount) & " blocks."

Also See

BlockNames

BlockObjects

IsBlock