Visio Guy

Visio Discussions => General Visio => Topic started by: Jennifer on December 19, 2022, 07:25:56 AM

Title: Looking for a good tutorial on stencils and master shapes
Post by: Jennifer on December 19, 2022, 07:25:56 AM
I am about to embark on a project that will work a lot better if I can create some master shapes. I have had some problems with this in the past. I've read some websites when I searched for "tutorials on visio stencils and master shapes". Some are better written than others.

Can anyone recommend a really good tutorial that will show me how to create and manage stencils and master shapes?

Thanks
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: wapperdude on December 19, 2022, 07:40:18 AM
I presume you've seen this reference:  https://support.microsoft.com/en-us/office/create-a-shape-9acfe781-ae7e-43e5-ad69-9f3f89d0cf7c (https://support.microsoft.com/en-us/office/create-a-shape-9acfe781-ae7e-43e5-ad69-9f3f89d0cf7c)

Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Surrogate on December 19, 2022, 08:09:32 AM
Hi, Jennifer !
Quote from: Jennifer on December 19, 2022, 07:25:56 AM
how to create and manage stencils and master shapes?
What do you mean as MANAGE ?
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Jennifer on December 19, 2022, 07:55:43 PM
Quote from: wapperdude on December 19, 2022, 07:40:18 AM
I presume you've seen this reference:  https://support.microsoft.com/en-us/office/create-a-shape-9acfe781-ae7e-43e5-ad69-9f3f89d0cf7c (https://support.microsoft.com/en-us/office/create-a-shape-9acfe781-ae7e-43e5-ad69-9f3f89d0cf7c)

Actually, no, I hadn't. I mostly searched for "stencil" and "master shape". I should have searched for "shape". Thanks 
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Jennifer on December 19, 2022, 08:01:41 PM
Quote from: Surrogate on December 19, 2022, 08:09:32 AM
Hi, Jennifer !
Quote from: Jennifer on December 19, 2022, 07:25:56 AM
how to create and manage stencils and master shapes?
What do you mean as MANAGE ?

I meant learning how to keep them all working over time. I read several places that said that changes to "master" shapes may not be propagated to the drawings because they get replicated in document stencils, or something like that. So it seemed like there were some pitfalls, which I would almost certainly fall into. So I wanted to understand the proper way to create, use, and maintain (manage) them all.
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Surrogate on December 19, 2022, 08:30:46 PM
Creating Masters and Stencils (https://learn.microsoft.com/en-us/previous-versions/office/developer/office-xp/aa200956(v=office.10)) - two decades old article.
Also I recommend Volume 1: Shapes and ShapeSheet Fundamentals (https://docs.google.com/viewerng/viewer?url=http://download.microsoft.com/download/F/0/0/F00E7198-CD99-40A9-A3B0-48E2EE0EAB34/Visio+2010+Developer+Training+01+-+Shapes+and+ShapeSheet+Fundamentals.docx) from Microsoft Visio 2010 Developer Training (https://www.microsoft.com/en-my/download/details.aspx?id=27198)

Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Jennifer on December 19, 2022, 09:35:07 PM
Quote from: Surrogate on December 19, 2022, 08:30:46 PM
Creating Masters and Stencils (https://learn.microsoft.com/en-us/previous-versions/office/developer/office-xp/aa200956(v=office.10)) - two decades old article.
Also I recommend Volume 1: Shapes and ShapeSheet Fundamentals (https://docs.google.com/viewerng/viewer?url=http://download.microsoft.com/download/F/0/0/F00E7198-CD99-40A9-A3B0-48E2EE0EAB34/Visio+2010+Developer+Training+01+-+Shapes+and+ShapeSheet+Fundamentals.docx) from Microsoft Visio 2010 Developer Training (https://www.microsoft.com/en-my/download/details.aspx?id=27198)

Great, thanks. I am probably making more of this than is necessary, but I thought I would try to head of any problems rather than cursing later when they arise. 🤨😯
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Nikolay on December 19, 2022, 09:50:36 PM
Quote from: Jennifer on December 19, 2022, 08:01:41 PM
I meant learning how to keep them all working over time. I read several places that said that changes to "master" shapes may not be propagated to the drawings because they get replicated in document stencils, or something like that. So it seemed like there were some pitfalls, which I would almost certainly fall into. So I wanted to understand the proper way to create, use, and maintain (manage) them all.

I think there is not much more to it, actually, than what you just said...
It is just to understand that Visio files are self-contained. i.e. everything a Visio file needs is contained in that file, including masters.

Therefore, if you modify a stencil file (i.e. a different file) this change will not actually affect things that are outside of that file, i.e. in all other files, the master (and shapes produced from it) will stay like they were before the modification.
This is all only relevant if you build your own masters and stencils, of course. Most users probably don't and just use the existing stencils provided by Visio.

I remember long, long ago, Visio even came with some database scripts to store custom masters, and some tools to manage them :)
But that was all much too complex, and was probably dropped at some point of time in the past.
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Jennifer on December 19, 2022, 11:58:35 PM
Quote from: Nikolay on December 19, 2022, 09:50:36 PM
Quote from: Jennifer on December 19, 2022, 08:01:41 PM
I meant learning how to keep them all working over time. I read several places that said that changes to "master" shapes may not be propagated to the drawings because they get replicated in document stencils, or something like that. So it seemed like there were some pitfalls, which I would almost certainly fall into. So I wanted to understand the proper way to create, use, and maintain (manage) them all.

I think there is not much more to it, actually, than what you just said...
It is just to understand that Visio files are self-contained. i.e. everything a Visio file needs is contained in that file, including masters.

Therefore, if you modify a stencil file (i.e. a different file) this change will not actually affect things that are outside of that file, i.e. in all other files, the master (and shapes produced from it) will stay like they were before the modification.
This is all only relevant if you build your own masters and stencils, of course. Most users probably don't and just use the existing stencils provided by Visio.

I remember long, long ago, Visio even came with some database scripts to store custom masters, and some tools to manage them :)
But that was all much too complex, and was probably dropped at some point of time in the past.

Ok. Maybe I am making more of it than is necessary. I often do. 🤔😯

It's just counterintuitive to me that a "master" is not a master. I am used to VBA where it is perfectly clear if some code is in a document module or an add-in. And if in an add-in, and I modify it, all documents that use it get the new code.

I'll study the suggested tutorials and probably be back when I go off the rails. 😥😣

Thanks
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Yacine on December 20, 2022, 08:56:26 AM
@Jennifer,
You haven't said much about your project. If you tell us more we may suggest ways to persist the dependency on a stencil.
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Jennifer on December 20, 2022, 10:45:47 AM
Quote from: Yacine on December 20, 2022, 08:56:26 AM
@Jennifer,
You haven't said much about your project. If you tell us more we may suggest ways to persist the dependency on a stencil.

It's an intro to music theory for the grandkids. It will lay out the basics of keys, key signatures, chords, chord progressions, circle of fifths, etc. I'm just getting started. My first shape is a piano keyboard:

(https://i.postimg.cc/tCSHNzKL/image.png)

It one will be used many times. Sometimes it will have the keys:

(https://i.postimg.cc/LsXdYgQm/image.png)

Can anyone tell me how to get the "flat" symbol? The Unicode is supposed to be 266D. 266F works for the sharp symbol.
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Croc on December 20, 2022, 03:16:50 PM
QuoteLooking for a good tutorial on stencils and master shapes
Jennifer, there are many tutorials out there that tell you how to make shapes. But there is one video that teaches you to understand the essence of Visio, the mechanics of the relationship of the main elements. I advise everyone to start with this material.
John Goldsmith "Visio, a flyby for developers" - https://www.youtube.com/watch?v=qsazcJ8pYJc
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: wapperdude on December 20, 2022, 05:16:54 PM
Regarding music symbols, you might have better luck downloading a font set.  This is untried and not an endorsement, but example:  https://fonts.google.com/noto/specimen/Noto+Music (https://fonts.google.com/noto/specimen/Noto+Music)
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Yacine on December 21, 2022, 08:35:52 AM
Quote from: Croc on December 20, 2022, 03:16:50 PM
QuoteLooking for a good tutorial on stencils and master shapes
Jennifer, there are many tutorials out there that tell you how to make shapes. But there is one video that teaches you to understand the essence of Visio, the mechanics of the relationship of the main elements. I advise everyone to start with this material.
John Goldsmith "Visio, a flyby for developers" - https://www.youtube.com/watch?v=qsazcJ8pYJc (https://www.youtube.com/watch?v=qsazcJ8pYJc)
That is indeed a good one. Actually the very first serious one I've ever seen on Youtube.
Thank you very much for this link.
Title: Re: Looking for a good tutorial on stencils and master shapes
Post by: Surrogate on December 21, 2022, 09:21:54 AM
Quote from: Yacine on December 21, 2022, 08:35:52 AMActually the very first serious one I've seen on Youtube
These videos were originally published on Channel9 about six years ago.
Quote from: David J Parker in article Visio, a flyby for developers (https://bvisual.net/2016/04/26/visio-a-flyby-for-developers/)I would like to draw everyone's attention to a two part Visio developer video series by my good friend and fellow Visio MVP, John Goldsmith.
Goto https://channel9.msdn.com/Blogs/MVP-Office-Dev/Visio-a-flyby-for-developers-Part-1 and https://channel9.msdn.com/Blogs/MVP-Office-Dev/Visio-a-flyby-for-developers-Part-2.
Well done John! Creating these videos has been a labour of love, I know. Now it is time to spread the love!
John published his videos on YouTube platform about six months ago, unfortunately the videos have not had many views or likes  :o