Verifies that a block definition is from a reference file.
rhinocsriptsyntax.IsBlockReference (block_name)
rhinocsript.block.IsBlockReference (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):
if rs.IsBlockReference(strBlock):
print "The block definition is a reference definition."
else:
print "The block definition is not a reference definition."
else:
print "The block definition does not exist."