News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Area of a shape in Visio 2007

Started by John Distai, April 08, 2010, 01:01:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

John Distai

Hi.  Is there an easy way to get the area of an irregular shape in Visio 2007?

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Yacine

#2
Paul,
does the area and perimeter tool add-on give incorrect results? It looked correct to me.
----
W., what was wrong?
Yacine

Paul Herber

Hi Yacine, yes, the area and perimeter tool probably does give the correct result but I guessed Mr Distai would want to do something more than just look at the output from the area addon. Using the formulae with VBA etc you can do what you want with the results.

The messages overview shows our chum Wapperdude posting two messages but nothing shows within the thread!
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Visio Guy

With code you can get the area in internal units, ie: "square inches".

Dim a as Double
a = Visio.ActiveWindow.Selection(1).AreaIU
Debug.Print a
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Visio Guy

Ok, wapperdude already posted a few replies that didn't show up for some reason. I deleted his messages, and now the thread is working again. This is what he said:

The "Space" shape located on the "Walls, Shell and Structure" stencil does this.

Wapperedude
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

wapperdude

Sorry for mucking things up.  VisioGuy captured my comments correctly!  Guess my attached drawing messed up things.

Oh well.  Looks like the various replies captured everything anyway.

Cheers!
Visio 2019 Pro

John Distai

Okay, thanks.

I noticed the curved wall shape gives the point-to-point length of the wall.  Is there a way to get it to calculate the length of the wall segment, accounting for the curvature?

Thanks!

Yacine

#8
Mister Distai,
the add-on, I mentioned previously, gives you both the surface and the perimeter of your shape (the length of your walls).
Yacine

John Distai

Yacine,

Thanks for that information.  Is the add on you are referring to for Visio 2007 or 2010?  I have 2007.  If it's available for 2007, where can I find it?

Thanks,

JD

wapperdude

#10
v2007:  menu bar>Tools>Add-ons>Visio Extras> Shape Area and Perimeter

As previous posted elsewhere in this forum, V2007 fixes a bug in the SAP add-on, so, now when you select a line segment, it will give the length of the line segment.

Wapperdude
Visio 2019 Pro

John Distai

Thanks!  Any chance there is a way to include this in the Size and Position window as a default?

Yacine

QuoteAny chance there is a way to include this in the Size and Position window as a default?
Sure, but not without code.
http://www.tech-archive.net/Archive/Visio/microsoft.public.visio.developer/2005-11/msg00030.html
Yacine

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 379 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1228KB.
Tokens: post-login.
Cache hits: 13: 0.00168s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]