Visio Guy

Visio Discussions => Programming & Code => Topic started by: healthNut on August 13, 2012, 01:58:38 AM

Title: What is the best way to hide shapes independently?
Post by: healthNut on August 13, 2012, 01:58:38 AM
I created a master shape and I want to hide parts of the different instances independently.
So hiding a part of instance A should not affect instance B
I've been doing it with layers but it hides ALL the parts of the multiple instances.

There's so many ways to do it, scaling and so on but hoping to learn from the experience of others that has done it.
Title: Re: What is the best way to hide shapes independently?
Post by: JuneTheSecond on August 13, 2012, 07:16:37 AM
My practice is to use NoShow cells in Geometry sections in the ShapeSheet.
Here is a document that has some expression about NoShow Cell.
http://blogs.msdn.com/b/visio/archive/2007/07/20/make-your-own-data-graphic-icon-sets.aspx
Title: Re: What is the best way to hide shapes independently?
Post by: healthNut on August 13, 2012, 01:29:50 PM
Thanks, I played with the NoShow but it seems to only work on shapes that are drawn by Visio. I have imported PNGs and it seems to only respond to Foreign Image Properties's Transparency cell.
Title: Re: What is the best way to hide shapes independently?
Post by: Visio Guy on August 13, 2012, 01:38:04 PM
This was one of my first articles, and it has a fairly exhaustive list of hiding techniques:

The Hidden World of Visio Shapes (http://www.visguy.com/2006/09/05/the-hidden-world-of-visio-shapes/)

When you use the ShapeSheet, such us the NoShow cell, keep in mind that every subshape inside of a group has to have the cell set as well. They can all refer to NoShow cell(s) in the top-group's ShapeSheet to create a cascading effect, but the subordinates all need to be wired-up.
Title: Re: What is the best way to hide shapes independently?
Post by: healthNut on August 13, 2012, 11:49:44 PM
Yes, that hidden world article was very helpful. It started me on the layers path but now I have to others such as NoShow and Transparency.
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 53 (show)
Files included: 25 - 925KB. (show)
Memory used: 771KB.
Tokens: post-login.
Cache hits: 7: 0.00106s for 22,301 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]