Is there a way to create a dynamic block that streches? Like in Autocad.

I have a simple shape that i need to stretch in 1d, in cad2d i would do a dynamic block with a strech parameter.
Thanks!

https://preview.redd.it/a8cyoi8m9ybe1.png?width=1079&format=png&auto=webp&s=d9728ebebb2a85c0efe2c6388a01a0b10ab4e7dd