Deletes a block definition and all of it's inserted instances.
rhinoscriptsyntax.DeleteBlock (block_name)
rhinoscript.block.DeleteBlock (block_name)
block_name |
Required. String or Guid. The name of an existing block definition. |
Boolean |
True or false indicating success or failure. |
import rhinoscriptsyntax as rs
strBlock = rs.GetString("Block name to delete")
if rs.IsBlock(strBlock):
rs.DeleteBlock(strBlock)