process by clicking on the Check Diagram button that is present on the PROCESS tab. This process will clear any existing issues for any changed pages in the document before looping through any rulesets. A changed page, sometimes referred to as dirty, is one that has shapes on it that have been altered in some way since the last validation. After validation, the process will re-mark as ignored any issues that were previously marked as ignored.
Any custom validation rules for a ruleset should be executed in code whenever the relevant RulesetValidated
event is fired. Visio does not automatically clear all issues in the document when the user selects the Process or the Check Diagram button. It only clears issues for pages that are dirty, that is, those that have had shape changes since the last time it was validated.
The syntax for the FilterExpression
and TestExpression
formulae are the same as for the ShapeSheet formulae. However, Visio 2013 includes some extra validation functions such as the ShapeSheet functions, but these functions cannot be used in the ShapeSheet formulae, with the exception of those marked with an asterisk.
The following table is an extract from The Diagram Validation API blog:
http://blogs.msdn.com/visio/archive/2010/01/07/the-diagram-validation-api.aspx
It lists the special quasi-ShapeSheet functions that can be used in the FilterExpression
and TestExpression
formulae, and has been extended to include the new functions added in Visio 2013 (marked with *
).