Of course, you can check out the code that makes this all happen by opening up the VBA editor. Note: that the spiral will be generated at the tip of the arrow, and if there was already a spiral there before, then the new spiral will be drawn over the old one - you might think that nothing happened at all! Now right-click the arrow shape and choose the Generate Spirals from the context menu. Once you’ve entered the expression, exit text-edit mode by clicking a blank area on the page, or by hitting the Esc key. Weird, eh?Ĭheck out: Evaluate Shape Text With EvalText for more information on how evaluation of text works. But if you’re familiar with Visio’s ShapeSheet, you can enter an expression like: 4 + Sin(35deg) – 8^2. Since this is the number of spirals that will be generated, you usually just need to enter a number. You can select one of these arrow shapes, and type any kind of valid Visio ShapeSheet expression. See: VBA Macro Security for more information on Visio, VBA and code inside of documents.Īfter you open the file, you’ll see a bunch of funny looking arrow shapes. A setting of Medium allows you to allow or disallow the macros when you open the document. If it’s set to High, then you’ll get a warning that the macros have been disabled. The macro-security setting is located under Tools > Macros > Security… If your security setting is Very High, then the macros will be disabled automatically. You’ll need to allow this code to run in order to create spirals. This file contains VBA (Visual Basic for Applications) macro-code that generates the spirals. The download consists of one Visio drawing file (.vsd). Ever need a spiral shape? I just found one buried on my hard-drive - something I whipped up years ago, and modified last year.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |