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.
- property
- The property to set. Existing properties include 'atomic', 'inlinable', and 'masked'.
- propertyValue
- The value to set the property to. Can use strings 'y' and 'n' or bools true or false.
- 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.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetPropertyValue(block, 'testProperty', false, true);
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetPropertyValue(block, 'inlinable', 'y', false);