Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: Jennifer on December 04, 2016, 07:02:17 PM

Title: Scalable ruler
Post by: Jennifer on December 04, 2016, 07:02:17 PM
Can anyone tell me where I can find a scalable ruler object that I can use to position alongside images in photos to get a sense of the sizes of the components? A standard 12 inch rules with both inches and centimeters would be great, but I'd be happy with just inches.
Title: Re: Scalable ruler
Post by: Croc on December 05, 2016, 09:04:54 AM
Jennifer,
About a year ago I was solving a similar problem. It was necessary to measure the length of the garlands on the house.
Then I made a special tool to change the scale of drawing.
It works as follows:
1. It is necessary to put a picture and the gauge on the page.
2. Align the gauge with a fragment whose size is known.
3. Enter the size into text of the gauge.
4. Run the "Prepare" function.
The drawing scale will be changed. In the new scale you can perform the measuring by any conventional means.
The gauge and macros are placed in the "Prepare5.vss" stencil.
The "gauge.gif" file shows how this works.
Try it.
https://yadi.sk/d/6MR1RWX-32Frcb
Title: Re: Scalable ruler
Post by: Jennifer on December 05, 2016, 04:53:31 PM
Very clever idea, Croc.

I thought briefly about changing the scale of the page so I could use the built-in dimension objects, but I was afraid that my Visio skills would mean that I'd spend most of a day or more fiddling with the details to get it to work.

I ended up making a scalable ruler that I can use that is good enough for what I need this time. I'll keep the link to your tool for future reference.

On my first attempt, I created a standard 1-foor ruler with divider lines for 1/2", 1/4", 1/8", and 1/16" and numbers (1-12) every inch. I first created a one-inch section and then replicated it 12 times. I made the whole thing into a group, but when I changed the size, the numbers did not scale. So I copied the whole thing to the clipboard and then pasted it using paste special as a picture. Works great.

I also (re)learned about parallax. I wanted to get as much detail as possible, so I shot the photo up close. When I got it into Visio, it was immediately obvious that an inch was not always an inch. I had to reshoot it from as far away as possible using the camera's maximum zoom setting.

Thanks
Title: Re: Scalable ruler
Post by: Jennifer on December 10, 2016, 06:35:19 AM
Quote from: Jennifer on December 05, 2016, 04:53:31 PM
I thought briefly about changing the scale of the page so I could use the built-in dimension objects, but I was afraid that my Visio skills would mean that I'd spend most of a day or more fiddling with the details to get it to work.

The scalable ruler didn't work out that well. It was too difficult to get it to line up, especially if the object wasn't rectangular.

So I went back and looked into scaling the image. That turned out to be easy and it works very well.

Here's the procedure:
Now other dimension objects will reveal other dimensions on the image.

I knew a few of the dimensions of the object I wanted to measure. At one point, it was 6.5" wide. I placed one of the architectural dimension objects and set the length to 6.5". Then I scaled my image until the part that I knew to be 6.5" wide matched the dimension object that read 6.5".

I then placed other dimension objects and was able to directly obtain all of the measurements that I needed.

This procedure works very well.

Croc,

I would be interested to know if this procedure would work for your situation and how to compares to your solution.

Cheers, J
Title: Re: Scalable ruler
Post by: wapperdude on December 10, 2016, 08:19:39 AM
@Jennifer:  you can refine your technique slightly that might make scaling the picture easier and more accurate.  After placing the pic on the drawing page, setting aspect ratio you could then...
  1) add two connection points, one at each end of your known dimension.  Now glue the dimension shape to these points.  The shape will change its value as you scale the image.  Scale until you get desired reading.

  2) another consideration would be that the connection points should be placed one either a horizontal or vertical line.  Drag a guide line onto the page, then rotate the image until the known dimension is perfectly aligned horizontally or vertically.  The added connection points should align with the guideline.

Wapperdude
Title: Re: Scalable ruler
Post by: Jennifer on December 10, 2016, 08:43:01 AM
Quote from: wapperdude on December 10, 2016, 08:19:39 AM
@Jennifer:  you can refine your technique slightly that might make scaling the picture easier and more accurate.  After placing the pic on the drawing page, setting aspect ratio you could then...
  1) add two connection points, one at each end of your known dimension.  Now glue the dimension shape to these points.  The shape will change its value as you scale the image.  Scale until you get desired reading.
I actually came up with an even better procedure. After placing the dimension shape on the known dimension, I place a second dimension shape to the full width of the shape. This is assuming that the known dimension in horizontal. Now I can calculate the exact scaling factor.

Suppose the known dimension is 6.5" and the dimension shape shows 5.57". My scaling factor is then 1.165. If the dimension shape shows the full width of the image as 9.45, then the true width is 9.45" * 1.165 or 11.008". If I have the aspect ratio locked, all I have to do is set the width field in the Size & Position table to 11.008 and the whole image is properly scaled.  8)

Quote2) another consideration would be that the connection points should be placed one either a horizontal or vertical line.  Drag a guide line onto the page, then rotate the image until the known dimension is perfectly aligned horizontally or vertically.  The added connection points should align with the guideline.

What??? Are you saying that I cannot take a photo and keep the camera level?

Seriously, this is a great suggestion. Again, I would offer a slight modification. Just draw a line from one end of the known dimension to the other. Then look in the Size & Position panel and record the Angle setting. Then select all, group, rotate by 0-that angle, and ungroup.

I just tried that and my photo's angle setting was -0.4914. But I did take the photo with both the object and the camera sitting on a table. If it had been hand held, it would probably been off more than that.

Excellent suggestion. Thanks.
Title: Re: Scalable ruler
Post by: wapperdude on December 10, 2016, 03:46:39 PM
Re Suggestion #1:  brilliant!

Re Suggestion #2:    ;D

Time to go sip a latte.
Wapperdude
Title: Re: Scalable ruler
Post by: Jennifer on December 10, 2016, 05:58:45 PM
Thanks. After a little more fiddling, I concluded that since I am using the length and angle settings from the Size & Position panel, I really don't need the dimension shapes. A simple line works just as well and is easier to position. I also discovered a few other "enhancements" to the procedure to reduce errors and improve accuracy. I wrote it up for myself for future reference, so I thought I would share it here in case it is of use to anyone else.

Here's the procedure. It's best to do this before placing any other objects on the image.

1. Setup

2. Correct for Skew.

3. Scale the Image.

The image is now scaled to actual size. Any objects placed on the image should reveal the true dimensions.
Title: Re: Scalable ruler
Post by: wapperdude on December 10, 2016, 07:05:13 PM
Nice.