bdeSetBlockStatus

Sets the status of a given block.

Syntax

bdeSetBlockStatus(block, flag)

Inputs

block
The block which will have it's status property set.
Type: block
flag
The string value to set the status property to. Options are 'on', 'off' and 'bypass'.
Type: string

Examples

Set status of a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockStatus(block, 'yes');