then use
>
> \dimexpr\measure{w2}\relax

It works, thank you.