Verifies that a block definition is embedded, or linked, from an external file.
rhinoscriptsyntax.IsBlockEmbedded (block_name)
rhinoscript.block.IsBlockEmbedded (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.IsBlockEmbedded(strBlock):
print "The block definition is embedded."
else:
print "The block definition is not embedded."
else:
print "The block definition does not exist."