![]() This file contains all the code – bVisualIconSetMaker.vss : I changed it to 9 mm for the above Backup example. The normal values are 6 mm for Metric documents, and 0.25 in for US Unit documents. Note : There is a Private Const iconSize statement at the top of the code file in the bVisualIconSetMaker.vss document. Then it is so simple to see which laptop is using which backup method: Then I applied the new Backup Icons icon set to some test shapes: This provides 6 options in the drop-down list because the first one is an empty string: ![]() I also added an extra Shape Data row, labelled Backup Method, to the Laptop Computer master shape, and made it a Fixed List type with the following Format formula: For example, I dragged and dropped 5 shapes from the Workflow Objects Shapes stencil. Of course, the IconSet Maker can be applied to almost any shape. When I applied them to my test shapes, I think I found my favourite: Not bad … better than the rough weather icons I had been given.įinally, I tried it with the arty images that I found using Clip Art: I then repeated the task with the master shapes that I found in the Symbols stencil: Then I applied the new icon set to my strip of test shapes:įaithfully reproduced, but too obviously an applied image for my taste… ![]() 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 |