Visio Guy

Visio Discussions => General Visio => Topic started by: Skyranger on August 07, 2020, 07:36:29 AM

Title: Scaling lines in Visio
Post by: Skyranger on August 07, 2020, 07:36:29 AM
0


I trying to create scallable shapes in Visio I manage to set scaling for text, but when it comes to lines i cant make it work:

Here i have shape

(https://i.stack.imgur.com/ukdbC.png)

I setup linewidth as described here http://visguy.com/vgforum/index.php?topic=5261.0

I have a ethernet switch shape created in real sizes and need that scale so it fit on page.

Now i set scale for a page to metric 1:5

(https://i.stack.imgur.com/QtzpT.png)


So, when i did it, i get this:

(https://i.stack.imgur.com/SH6v8.png)

So it did not scaled properly. How to scale this?
Title: Re: Scaling lines in Visio
Post by: Surrogate on August 07, 2020, 09:23:36 AM
Quote from: Skyranger on August 07, 2020, 07:36:29 AM
I trying to create scallable shapes in Visio I manage to set scaling for text, but when it comes to lines i cant make it work:
May be this ancient russian article (https://surrogate-tm.github.io/digitall/articles/article2.html) can help ? (read via Google Translate service (https://translate.google.com/translate?sl=ru&tl=en&u=https%3A%2F%2Fsurrogate-tm.github.io%2Fdigitall%2Farticles%2Farticle2.html))
Title: Re: Scaling lines in Visio
Post by: Yacine on August 07, 2020, 11:09:44 AM
I just copied your formula in the lineweight field and it worked like a charm. cf. attachment.May be you should first modify the line width in the GUI?
Title: Re: Scaling lines in Visio
Post by: wapperdude on August 09, 2020, 02:12:18 AM
Assuming that you really want to (a) change linewidth by stretching shape width, not just by the GUI, and (b) preset the line thickness with the GUI,  this approach works just fine:
1) create a User section entry:  User.LnWt.
2) add this formula to the Lineweight cell:  =SETATREF(User.LnWt,SETATREFEVAL(SETATREFEXPR(6 pt)/Width))*Width