• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Visio Guy

Smart graphics for visual people




  • Home
  • Hire Me
    • Hire Me
    • Résumé
  • Products
    • Products
    • Bubble Revision Shape
    • Layers to Pages Utility
    • Rack Unit Dimension Line
    • Radial Elements Tool with up to 100 Wedges
    • Text on a Circle Visio SmartShape
  • Index
    • Articles by Date
    • YouTube – VisioGuy
    • Download Information
    • Suggestion Box
    • Shop
    • Visio Art
    • Visio Links
    • – Visio Shapes & Stencils
    • – Visio Templates & Drawings
  • About
    • About
    • Donate
    • GitHub
    • jsFiddle
    • Reading List
    • Subscribe & Follow
      • – E-mail
      • – facebook
      • – Twitter
      • – RSS
    • Privacy Policy
  • Discussion Forum
You are here: Home / Archives for Development / Code

Code

Detect Sub-selected Shapes Programmatically

May 17, 2008 By Visio Guy 14 Comments

Read Full Article

A coding problem that Visio developers often stumble upon recently reared its ugly head yet again in the newsgroups. The question, very simply, was:

How do you programmatically detect sub-selected shapes?

The usual place to start is with a simple line of code, like:

Visio.ActiveWindow.Selection

But as it turns out, this line surprisingly does not return sub-selected shapes. So let’s dig deeper into the problem so that you can get your projects finished!

[Read more…] about Detect Sub-selected Shapes Programmatically

Filed Under: Code

Understanding Arc-Resize Problems in Visio

April 28, 2008 By Visio Guy 9 Comments

Read Full ArticleIf you’ve ever drawn arcs in Visio, then grouped them together with other shapes, you may have noticed that they behave rather oddly on resizing. As you make the group bigger or smaller, the arcs may bow or squish in ways that you didn’t expect.

This problem arises because of the interaction style of the arc shapes, which is 1D. Visio has two interaction styles: 1D and 2D. They have to do with the green handles you see on the shape, and how you go about manipulating the shape with the mouse.

In this article, we’ll describe the difference between the two interaction styles, and explain how to correct resizing problems you might be encountering.

[Read more…] about Understanding Arc-Resize Problems in Visio

Filed Under: Code, Power User, ShapeSheet Tagged With: 1D, 2D, Code, Formulas, Geometry, ShapeSheet, Size & Position

Connect All Shapes to Each Other

March 17, 2008 By Visio Guy 22 Comments

Read Full ArticleIf you’re a developer, looking to create Visio-based solutions, then you’re going to need to programmatically connect Visio shapes together. Wouldn’t be nice to have a snippet or two to start from?

Today’s post shows you VB and C# code that instructs Visio to connect every shape to every other shape, and to create a beautiful mess, like that shown in the image at left.

[Read more…] about Connect All Shapes to Each Other

Filed Under: Code, Development Tagged With: Code, Connectors, Layout, Programming

Edit Visio Masters Programmatically…the Right Way!

February 25, 2008 By Visio Guy 54 Comments

Read Full Article

If you are busy developing a Visio solution, you might run into the situation where you need to edit a Visio master using code.

Like any application that has survived the ages, Visio has its share black-magic techniques that lurk in dusky corners of the netherworld. And if you need to edit masters programmatically, be warned! You’re heading down a dark alley…

If you’ve already run into problems with this, don’t feel bad. Even experienced Visio developers get tripped-up by this one! And that’s because the correct way to do this isn’t obvious, and the obvious way to do it isn’t correct!

[Read more…] about Edit Visio Masters Programmatically…the Right Way!

Filed Under: Code, Development Tagged With: Best Practices, Code, Masters

Circular Text Generator (version 2)

January 5, 2008 By Visio Guy 63 Comments

ctgv2_goseahawks2

Getting text on a circle in Visio was always a pain until the Circular Text Generator (version 1) appeared on Visio Guy. V1 was evidently a big hit, but you wanted more! Version 2 adds some more control over text spacing and placement on the circle. So if you need to place Visio text on a circle, read on!

[Read more…] about Circular Text Generator (version 2)

Filed Under: Add-ins & Tools, Code, Illustration, Shapes, ShapeSheet, Tools Tagged With: Text, Text on a Curve

Text to the Bottom of the Shape

November 7, 2007 By Visio Guy 5 Comments

A Visio newsgrouper recently pointed out that in Visio, inserted images have a different default text position than normal shapes. For images, the text is located at the bottom of the shape, and text “grows” downward.

This makes sense, since you usually don’t want the text to obscure the image. But perhaps you shape developers out there in Internet Land might wish to have the same text behavior for your shapes!

In this article, we’ll discuss how to do it by hand, and offer some VBA script to get the job done faster!

[Read more…] about Text to the Bottom of the Shape

Filed Under: Code, Development, ShapeSheet Tagged With: Code, Images, Programming, Text

LengthIU Bug Workaround Code

October 20, 2007 By Visio Guy 10 Comments

Read Full Article

Visio 2003 has a defect in the LengthIU property of a Shape object. This article discusses the bug, describes a work-around, and offers Visual Basic code to help you get back on track!

[Read more…] about LengthIU Bug Workaround Code

Filed Under: Code Tagged With: Bugs, Code, Length, Polygons, Programming

Circular Text Generator (version 1)

October 18, 2007 By Visio Guy 36 Comments

Read Full ArticleOK, we’ve just about had enough! Between all the newsgroup posts, and John Marshall’s nagging, it’s time to do something about adding text to a circle in Visio. ‘Til now, the standard response has been; “insert a Word Art object”. But with Visio’s SmartShape- and automation capabilities that just won’t do! We ought to be able to build something cool–and more native to Visio. This article presents the first in a series of the Circular Text Generator! [Read more…] about Circular Text Generator (version 1)

Filed Under: Code, Illustration, Shapes, ShapeSheet, Tools Tagged With: Code, Programming, Text, Text on a Curve

Customized Visio HTML Export

August 24, 2007 By Visio Guy 10 Comments

A recent Visio newsgroup post asked about customizing the output files from Visio’s Save As Web feature. This rang a bell in the ol’ noggin, and I went searching for an old demo that exported a customized html page, with pop-up menus that displayed Custom Property (Shape Data) information.

[Read more…] about Customized Visio HTML Export

Filed Under: Code, Development, Drawings & Templates Tagged With: Code, HTML, Programming, Right-Click Actions, Web

Sales Force Automation With Visio

June 3, 2007 By Visio Guy 20 Comments


One of the areas in which Visio particularly shines is that of Sales Force Automation. With Visio, a rep can sit on-site with a customer, and visually spec out a system or an installation. The components in the Visio schematic can be linked to real product-data, and can be analyzed via code to generate bills-of-material and reports automatically.

On MSDN, I recently uncovered “oldie but goody” demo that shows off these capabilities. I created it for Visio 5.0, while I still worked for Visio Corp, and it still works with Visio 2003! The demo illustrates how a fictitious candy-manufacturing line might be laid out. Custom shapes represent general classes of equipment, and database links behind the shapes specify real-world items. With the click of a button, a Bill of Materials, is generated in an embedded Excel spreadsheet, sitting right on the page!

[Read more…] about Sales Force Automation With Visio

Filed Under: Code, Shapes Tagged With: BOM, Code, Database, Excel, Integration, Programming, Sales Force Automation

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to Next Page »

Primary Sidebar

Buy Über Bubble Revision Shape
Purchase

Categories

Buy my book!

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tag Cloud

A/V Artistic Effects BPM BPMN Code Connectors Control Handles Countries Custom Patterns Custom Properties Data Graphics Data Linking Data Visualization David Edson David Parker Fill Format Formulas Functions Geometry Gradient Images Links Maps Multi-shapes Network Programming Resources Right-Click Actions Scale Shape Data ShapeSheet ShapeSheet Formulas ShapeSheet Functions SharePoint shiny SmartShapes Sport Sports Text Themes Tools Transparency User-defined Cells Visio 2007 Visio SmartShapes

Top Posts & Pages

  • - Visio Shapes & Stencils
  • - Visio Templates & Drawings
  • Amazon AWS Visio Shapes
  • Go 3D with Free Isometric Piping Shapes for Visio
  • Dynamic Updating Org Charts in Visio!
  • Visio Network Server Shape Icon Customization Tool
  • Top Twelve Text Tips
  • Text on a Circle Visio Shape
  • Bubble Revision Shapes
  • Audio Visual Components Shapes

www.visguy.com - Visio Guy - since 2006

 

Loading Comments...