Thanks for the answers tig and blruuska!
Yes it's tricky to change these parameters.
specially when ther are no documentation.
I have tried to use _lenx_formula and ended up with unscalable components because
lenx is stored as '=value' and not value.
If i manually put in a value and not a formula it is stored back without "=" inthe formula field.
so there should be a way to do this in ruby.
For other attributes i created myself, i managed to go from formula back to just a value
but for default attributes like lenx this method is unusable.
I have now spend days trying to turn every stone on the web.
And found out that there are many developers stuck with the same result.
Maybe i cold use transformation and scale for the length.
but i would still not end up with an exact value.
Because scale is % of length and values are internally
stored in inch and not metric the result is that i end up with a lot of decimals.