No that I had a new icon set, I could use it to change the icon set used in my test shapes: If the icon set name already exists, then you will be prompted to confirm that you want to delete the existing one first: You will then be prompted to enter the desired name for your new icon set: When you have selected your shapes in the order that you want them to appear (I selected the fourth one last in my example), then run the macro in the bVisualIconSetMaker stencil: Read the previous article to see why 6 shapes can be selected, but also realise that the order that you select your 6 shapes dictates the order that they will appear in the icon set, with the sixth selected shape becoming the default icon. There is just one public function, MakeIconSetFromShapes(), that expects you to have 1 to 6 shapes selected in the document that you want to add an icon set to. The code is provided in a stencil, called bVisualIconSetMaker.vss, with no master shapes in it, so the easiest way to use it is to drop into your My Shapes folder, because you can then easily open it for any Visio document. I am not going to go through all of the code in this article, because I have included it as a download at the end of this post. It can be a bit tedious to manually make icons sets from code, so I thought that some VBA code would be best. So, now I have 3 alternative sets of cloud icons, and I wanted to see how they look as Data Graphic Icon Sets. They are okay, but I thought that I would also explore the images available from Clip Art: I wasn’t too keen with the graphics, so I explored the built-in Visio stencils, and found a similar series of shapes on the Symbols stencil: I was asked to make KPI icons from six weather images: In fact, I will show you how to do it with existing SmartShapes or with images. In my last post, I showed how you can actually have up to six icons in a Visio Data Graphics Icon Set ( see ), and I finished by saying that I would now show how to create new icon sets from existing shapes … automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |