Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: dsmall on March 17, 2021, 04:03:23 PM

Title: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: dsmall on March 17, 2021, 04:03:23 PM
I was wondering how I can group multiple Shapes in a Stencil, and be offered an option to choose a shape when dragging into a project.  For example, Middle Atlantic has a single shape for an AV Rack model, but when you add it to the page you get a Shape Data option to choose a specific size, which really is just a list of different shapes.  Thanks!
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: Thomas Winkel on March 17, 2021, 04:30:46 PM
Select a specific shape out a group is only possible with code, triggered by an event.

But you can create shapes that changes form depending on shape data -> ShapeSheet formulas
This shape data could be of type "Fixed List" and with option "Ask on drop".
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: Paul Herber on March 17, 2021, 04:31:31 PM
This can be done in two ways. The master shape in the stencil is either a grouped shape or a shape with multiple geometry sections. For the shape you mention this most likely to be a grouped shape. The visibility of each shape or geometry section is controlled by shapedata. When a shape is dropped on a page there is an option to have the user be asked to enter shapedata values. In a nutshell.
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: dsmall on March 18, 2021, 03:12:56 PM
Thank you, is there a resource or search term that would point me in the correct direction? Looking a the example master shape properties, nothing sticks out to see how it is configured.
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: Paul Herber on March 18, 2021, 03:46:27 PM
Have a look at the shape Logic Gate 2 in stencil Analog and Digital Logic.
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: dsmall on March 18, 2021, 04:00:08 PM
Thank you, I see how that shape offers choices but I'm still not sure how that master shape would be created and configured.  Also, the behavior is different than what I am looking for where you would be presented the option immediately when adding the shape to the page. I've attached a shape that does what I'm looking for.

Thanks again for your feedback!
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: Thomas Winkel on March 18, 2021, 05:41:23 PM
You need to spend a few hours to learn ShapeSheet and shape data.

There are plenty of resources, for instance here:
https://www.youtube.com/watch?v=jOC5TLziBw0
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: dsmall on March 18, 2021, 05:58:41 PM
Thanks for the resource, Ill check that out.
Title: Re: Grouping multiple Shapes in a Stencil, select a specific Shape option
Post by: Surrogate on March 18, 2021, 06:07:49 PM
Quote from: Surrogate on February 05, 2018, 10:25:20 AM
Let me introduce my project - ShapeSheetâ„¢ Knowledge Base (https://shapesheet-kb.github.io/)

In MS Visio 2013/2016 have about 210 functions in ShapeSheet environment (https://msdn.microsoft.com/en-us/library/office/jj945061.aspx).

And many newbies have problems when they search function which they need!

Hope my list of functions by categories (https://shapesheet-kb.github.io/en/pages/Functions_by_category.htm) could help to many peoples learn more about ShapeSheetâ„¢.
hope this project (https://shapesheet-kb.github.io/en/index.htm) can helps...