Author Topic: Select and Filter and Sort Layout  (Read 4590 times)

0 Members and 1 Guest are viewing this topic.

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Select and Filter and Sort Layout
« on: August 30, 2013, 08:56:13 AM »
A feature that I find myself very frequently building into custom solutions to a certain extent is code to filter and select shapes. Some examples:

- Selecting all shapes of a class (defined by me, using a special User.Class cell and value).
- Selecting all instances of a master (this is built into the API)
- Sorting shapes left-to-right, or top-to-bottom based on shape data field values.
- Other search and sort operations

The Visio UI has a few "Select Special" options, such as By Role and By Layer. This is nice, but more UI options, backed by APIs would be valuable to power users and developers alike.

A natural extension of this implementation would be to add some matrix and circular layouts of non-connected shapes. An example: layout all the PC shapes on the page, sorted by User Name, in an M x N grid.
« Last Edit: August 30, 2013, 09:01:12 AM by Visio Guy »
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010