Hello,
Why SQRT() ShapeSheet function with dimensioned value causes error?
For example, this formula "=SQRT(9)" is valid and returns 3
but this formula "=SQRT(9 in)" is not valid and returns error #DIM! Why is this?
I need this in order to get square root of shape's width, i.e
User.Temp = "=SQRT(Width)" << but it is not working
any idea how to solve this?
and one more thing, what does #DIM! mean?
Thanks,
Yousuf.
"=SQRT(9 in/1 in)" or "=SQRT(9 in*1 in)"
I've also been wasting much time how to treat units in Visio.
Thanks JuneTheSecond,
This solved my issue and this is not easy to figure out. I thought that i would need to use ShapeSheet function like VALUE() or QUNATITY() but no such function exists.
Although dividing by 1 in resolves this issue, it does not look to me a generic method. For example what if the Width is expressed in cm or ft? What should be written in order to get just the value of width without its unit, so it can be used in functions like SQRT()?
Thanks,
Yousuf.
=SQRT(Width/ThePage!PageScale) ?
if your drawing is not scaled.
Yes, this solves it.
Thanks JuneTheSecond. You are star! 8)
Yousuf.
Hi All,
This article relates to the problem in this thread:
Casting Units in Visio's ShapeSheet (http://www.visguy.com/2006/10/03/casting-units-in-visios-shapesheet/)