bdeSetPropertyValue

Sets a propertyValue for a property of a given block.

Syntax

bdeSetPropertyValue(block, property, propertyValue, createIfAbsent)

Inputs

block
The block to set a property of.
Type: block
property
The property to set. Existing properties include 'atomic', 'inlinable', and 'masked'.
Type: string
propertyValue
The value to set the property to. Can use strings 'y' and 'n' or bools true or false.
Type: string/Boolean
createIfAbsent
Boolean that is used to create the property if it does not exist. true to create the property, false to not create the property if it doesn't exist.
Type: Boolean

Examples

Set a value for a new property in block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetPropertyValue(block, 'testProperty', false, true);
        
Set a value for an existing property in block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetPropertyValue(block, 'inlinable', 'y', false);