Verifies the existence of a block definition in the document.
rhinocriptsyntax.IsBlock (block_name)
rhinocript.block.IsBlock (block_name)
block_name |
Required. String. The name of an existing block definition. |
Boolean |
True or false indicating success or failure. |
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."