BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Select and Filter and Sort Layout

Started by Visio Guy, August 30, 2013, 01:56:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visio Guy

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.
For articles, tips and free content, see the Visio Guy Website at
Get my Visio Book! Using Microsoft Visio 2010

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 139 (show)
Files included: 32 - 1207KB. (show)
Memory used: 990KB.
Tokens: post-login.
Cache hits: 13: 0.00113s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]