Visio Guy

Visio Discussions => General Visio => Topic started by: robmcvick on January 08, 2022, 04:50:18 PM

Title: Combining two stencils
Post by: robmcvick on January 08, 2022, 04:50:18 PM
Hello,

I was wondering if it is possible to combine two stencils and have the first one open to show the second? Like a cabinet?

Appreciate any help. New to Visio.
Title: Re: Combining two stencils
Post by: Surrogate on January 08, 2022, 05:25:31 PM
May be you need smart shapes?
http://www.visguy.com/2008/09/22/a-smartshape-is-worth-1000-symbols/ (http://www.visguy.com/2008/09/22/a-smartshape-is-worth-1000-symbols/)
Title: Re: Combining two stencils
Post by: Nikolay on January 08, 2022, 07:25:46 PM
Visio has "templates". A template is a drawing (often empty, or containing something for a user to start from) plus a set of stencils.
When a user creates a new diagram using a template, the stencils, which were "included" (opened) in the template, are automatically opened also in the user's drawing that is based on that template.
Visio template files have ".vstx" extension (not "t" instead of "d").
Maybe this is what you are after?
Title: Re: Combining two stencils
Post by: Paul Herber on January 08, 2022, 08:01:19 PM
But the stencils are not "included", there is only a reference to them, so if the stencils are not on the stencil paths of the user then they won't be found.
Title: Re: Combining two stencils
Post by: wapperdude on January 08, 2022, 09:40:32 PM
I'm wandering if the OP really meant shapes rather than stencils??? 

At any rate, more clarification would be nice, since, as state, seame kinda vague...
If truly I intended to mean stencils, is it a stencil of, say, room elements, perhaps chais, tables, cabinets.  Then, clicking on cabinets opens a 2nd stencil of cabinet types/styles?
Title: Re: Combining two stencils
Post by: Paul Herber on January 08, 2022, 09:45:13 PM
I suspect the OP may mean a nested stencil, like a set of nested tables! Click on a table shape and open a stencil of table shapes.
Title: Re: Combining two stencils
Post by: wapperdude on January 08, 2022, 10:52:55 PM
...OK...That fits the scenario I presented. 

That being the case, then the answer is no.  No way to do that.
Title: Re: Combining two stencils
Post by: robmcvick on January 09, 2022, 04:45:20 PM
Thanks for the replies. I have attached a screenshot of the two stencils. I want to combine the two and be able to click on the top one and it reveals the bottom one. Is that possible?
Title: Re: Combining two stencils
Post by: Paul Herber on January 09, 2022, 05:04:42 PM
No.
Title: Re: Combining two stencils
Post by: robmcvick on January 10, 2022, 12:19:34 AM
Thanks for the reply.
Title: Re: Combining two stencils
Post by: Visisthebest on January 10, 2022, 09:01:43 AM
robmcvick something like this feature (if we're actually talking about stencils & their shapes) is actually on the Visio road map: https://www.microsoft.com/nl-nl/microsoft-365/roadmap?filters=Visio

Visio: Collection of shapes

Create a collection of your favorite shapes to quickly access and use them in your document.

Feature ID: 68375
Added to roadmap: 5/24/2021
Last modified: 7/7/2021
Product(s): Visio
Cloud instance(s): Worldwide (Standard Multi-Tenant)
Platform(s): Web
Release phase(s): General Availability

Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 09:09:40 AM
robmcvick,
I cant find this Cisco shape ! What is its name ?

I think it is SVG-based shapes, and you can hide one of sub-shapes (front or rear view)!
Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 09:29:27 AM
Quote from: Visisthebest on January 10, 2022, 09:01:43 AMVisio: Collection of shapes

Create a collection of your favorite shapes to quickly access and use them in your document.
Visisthebest, are you sure that this is about 3rd-party stencils ?
Title: Re: Combining two stencils
Post by: Visisthebest on January 10, 2022, 10:36:36 AM
I assume that is possible but Microsoft gives very little detail on its road map unfortunately.
Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 10:50:54 AM
Quote from: Surrogate on January 10, 2022, 09:09:40 AM
I think it is SVG-based shapes, and you can hide one of sub-shapes (front or rear view)!
My example! This shape have context menu, you can open it with click right button on mouse.
Select option Change Pic at the top of context menu.
Title: Re: Combining two stencils
Post by: wapperdude on January 10, 2022, 05:57:02 PM
This seems like totally wrong path for the OP.  He has a stencil open, and then wants to bring up a 2nd, related stencil.  Stencils are not same as collections.
Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 06:31:44 PM
Hi, Mr. Dude!

May be you are right! I'm sorry, I'm Russian...
Quote from: robmcvick on January 09, 2022, 04:45:20 PMI have attached a screenshot of the two stencils
IMHO at screenshot not stencils, there are two master-shapes!!!
Title: Re: Combining two stencils
Post by: wapperdude on January 10, 2022, 09:23:50 PM
...haven't been at my computer.  Back now.  Ah.  looking at his screen shot, it's hard to tell exactly, as the resolution isn't great, but it looks like this is about two views of same shape,  and doesn't involve stencils.  So this is a terminology error.  Or is it just me?

If that's the case, then what OP wants is certainly doable.  Assuming these are just images and not actual Visio shapes, then, they could be grouped, properly aligned.  They, double click could toggle the visibilities, hiding one and revealing the other.
Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 10:04:29 PM
Quote from: wapperdude on January 10, 2022, 09:23:50 PMit's hard to tell exactly, as the resolution isn't great, but it looks like this is about two views of same shape,  and doesn't involve stencils.
just googled at picture - it looks like Cisco ONS 15454-M6-SA (https://cisco-apps.cisco.com/c/en/us/support/optical-networking/ons-15454-m6-multiservice-transport-platform-mstp/model.html)
Download stencil there (https://www.cisco.com/c/dam/assets/prod/visio/visio/product_visio_icon0900aecd800a7596.zip)
Title: Re: Combining two stencils
Post by: robmcvick on January 10, 2022, 10:10:41 PM
they are two master stencils and yes it is an ONS 15454. I got the stencils from the CISCO website
Title: Re: Combining two stencils
Post by: robmcvick on January 10, 2022, 10:23:55 PM
see attached
Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 10:24:34 PM
Quote from: robmcvick on January 10, 2022, 10:10:41 PMI got the stencils from the CISCO website
It is very ancient stencil (device not supported now), these master-shapes are not SVG-objects (emf) :(
Title: Re: Combining two stencils
Post by: robmcvick on January 10, 2022, 10:33:04 PM
I assume it is not possible then?
Title: Re: Combining two stencils
Post by: Surrogate on January 10, 2022, 10:41:09 PM
Quote from: robmcvick on January 10, 2022, 10:33:04 PM
I assume it is not possible then?
You need include front and rear view into one shape, which can show front and hide rear sub-shapes and vice-versa ?
Title: Re: Combining two stencils
Post by: wapperdude on January 10, 2022, 10:59:45 PM
First, some terminology.  A stencil is a collection of shapes.  What you show is two shapes from the Cisco stencil.

So, what you want to do can be done.  See attached.  This is a grouped shape, consisting of the two Cisco shapes, overlaid.  Right click the group shape and it brings up menu with "Toggle View".  Click this entry to toggle the view.  There are other ways, but using Double Click event is a bit of a problem as the Cisco shapes use this event to bring up menu.

The Cisco shapes are images with some Visio functionality.
Title: Re: Combining two stencils
Post by: robmcvick on January 10, 2022, 11:23:10 PM
wapperdude,

how did you do that? and thank you.
Title: Re: Combining two stencils
Post by: wapperdude on January 11, 2022, 12:32:03 AM
I've updated the Visio file.  Page 2 contains the steps for the creation process.