Hi:
I tried the following code to configure the shape properties (the ones visible in the SHAPE DATA window in Visio), but it is not working - the properties are not being set:
for (shapeProperty in shapeProperties.properties) {
val prop = Prop()
prop.name = shapeProperty.name
prop.nameU = shapeProperty.name
prop.value.val
= shapeProperty.value ?: “”
shape.props.add(prop)
}
I am not sure about what is wrong about it - there are no examples on how to add properties in the example, and I cannot figure out how to do it.
Can you help me with a working example of how to add the properties?