DeleteBlock

Deletes a block definition and all of it's inserted instances.

Syntax

rhinoscriptsyntax.DeleteBlock (block_name)

rhinoscript.block.DeleteBlock (block_name)

Parameters

block_name

Required.  String or Guid.  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 to delete")

if rs.IsBlock(strBlock):

    rs.DeleteBlock(strBlock)

Also See

BlockNames

ExplodeBlockInstance

IsBlock