I am trying to change some of the layer names with Ruby. I wrote some code like:
layout_info = layout.get_info( found_layer )
if layout_info.layer == 10
layout_info.name = "DIFF"
Put I get an error Ruby error: 'Cannot call non-const method name=, class LayerInfo on a const reference'
This makes sense once I check the documentation, as layout.get_info does return a const. I was wondering if there is a good way of changing an existing layer name from ruby without having to first delete the layer and then add a new layer.