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

Managing layers on master shapes

Started by andlop, April 28, 2020, 03:24:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andlop

Hi, I started to work with Visio recently and I have a problem. I crated my own stencil with a few shapes that I will use. In some shapes I would like to add some layers. My specific situation is that I have conveyors, and with the layers I want to add sensors in some pre-defined locations, by switching a boolean to TRUE ou FALSE in the shape data. I have managed to do that, and my problem is when I add the shapes to a drawing. I can't, for example, have two shapes on the drawing, with one of them having a sensor and the other not. If a switch the boolean, the sensor (layer) appears in all of the shapes. Do you know how I solve this?

Thank you

Surrogate

You can hide your sub-shape (sensor) without using of layers !

Just set TRUE in cell NoShow

andlop

How does that work? The "Geometry1.NoShow" will affect only the sensor in the master shape or the whole shape?

wapperdude

#3
Surrogate's reply indicates that this would be done via shapesheet for the sensor shape. There are a variety of ways to
Implement this. 

The two fundamental approaches are to push the result from the group into the sub shape, or alternatively, let the sub shape pull the result from the group.

Example of Pushing:  use dbl click behavior at group level to assign True/False value to the Geometry No Show cell.
Example of Pulling:  at the group level set some variable to be either true or false, perhaps using the right click action menu.  The sub shape would read the value of this cell.
Visio 2019 Pro

vojo

each geometry section in a given shape (child shape or parent shape) has controls for displaying
- nofill
- noline
- noshow.

So you could have multiple geometries in a shape and decide to turn 1 on and the other off.

andlop

I have managed to do it! Thank you!

Browser ID: smf (possibly_robot)
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: 244 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1109KB.
Tokens: post-login.
Cache hits: 13: 0.00143s for 26,764 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]