Linear parameter, change value based on expression with block attribute

I have a block with attribute definitions in AutoCAD.

Inside the Block Editor, I created a Linear Parameter to define the length of a polyline (pline), and it worked well.

The problem is, at the end where I applied the Stretch Action, there’s an Attribute Definition that isn’t following the polyline’s stretch.

Which feature (action or parameter) should I assign to this Attribute Definition so that it follows the polyline’s stretch?

Is it possible to create a formula where the stretch length is defined based on the subtraction of two values?
instr_ok.dwg (497.7 KB)
import.txt (11.3 KB)

Hi @alexlibrelon,

Is Dynamo being used at all in your workflow? If not, I suspect that you might be able to get some better answers on the general AutoCAD forum.

“Yes, Dynamo is being used in other stages such as spatialization of diverse tests, solid generation, section creation, etc.”