IsBlock

Verifies the existence of a block definition in the document.

Syntax

rhinocriptsyntax.IsBlock (block_name)

rhinocript.block.IsBlock (block_name)

Parameters

block_name

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

Returns

Boolean

True or false indicating success or failure.

Example

import rhinoscriptsyntax as rs

strBlock = rs.GetString("Block name")

if rs.IsBlock(strBlock):

    print "The block definition exists."

else:

    print "The block definition does not exist."

Also See

IsBlockEmbedded

IsBlockInstance

IsBlockInUse

IsBlockReference