Author Topic: Managing layers on master shapes  (Read 13661 times)

0 Members and 1 Guest are viewing this topic.

andlop

  • Newbie
  • *
  • Posts: 7
Managing layers on master shapes
« on: April 28, 2020, 10:24:44 AM »
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

  • Hero Member
  • *****
  • Posts: 1844
    • ShapeSheet™ Knowledge Base
Re: Managing layers on master shapes
« Reply #1 on: April 28, 2020, 03:43:04 PM »
You can hide your sub-shape (sensor) without using of layers !

Just set TRUE in cell NoShow

andlop

  • Newbie
  • *
  • Posts: 7
Re: Managing layers on master shapes
« Reply #2 on: May 07, 2020, 11:24:07 AM »
How does that work? The "Geometry1.NoShow" will affect only the sensor in the master shape or the whole shape?

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4917
  • Ideas Visio-lized into solutions
Re: Managing layers on master shapes
« Reply #3 on: May 07, 2020, 03:21:46 PM »
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.
« Last Edit: May 07, 2020, 11:03:11 PM by wapperdude »
Visio 2019 Pro

vojo

  • Hero Member
  • *****
  • Posts: 1711
Re: Managing layers on master shapes
« Reply #4 on: May 07, 2020, 10:15:15 PM »
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

  • Newbie
  • *
  • Posts: 7
Re: Managing layers on master shapes
« Reply #5 on: May 11, 2020, 09:06:44 AM »
I have managed to do it! Thank you!