Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft Visio 2013 Business Process Diagramming and Validation - Second Edition

You're reading from  Microsoft Visio 2013 Business Process Diagramming and Validation - Second Edition

Product type Book
Published in Nov 2013
Publisher Packt
ISBN-13 9781782178002
Pages 416 pages
Edition 2nd Edition
Languages
Author (1):
David Parker David Parker
Profile icon David Parker

Table of Contents (14) Chapters

Preface 1. Overview of Process Management in Microsoft Visio 2013 2. Understanding the Microsoft Visio Object Model 3. Understanding the ShapeSheet™ 4. Understanding the Validation API 5. Developing a Validation API Interface 6. Reviewing Validation Rules and Issues 7. Creating Validation Rules 8. Publishing Validation Rules and Diagrams 9. A Worked Example for Data Flow Model Diagrams – Part 1 10. A Worked Example for Data Flow Model Diagrams – Part 2 11. A Worked Example for Data Flow Model Diagrams – Part 3 12. Integrating Validated Diagrams with SharePoint 2013 and Office365 Index

Working with the ValidationRuleSets collection

Validation Rules are grouped within ValidationRuleSets. The UI provides the ability to import a built-in ruleset (Flowchart or BPMN 2.0) or a ruleset from another open Visio document, but the programmer can use the Add(NameU as String) or AddCopy(RuleSet as ValidationRuleSet[, NameU]) methods to create a new one.

The following code could be run from the Immediate window in VBA:

Visio.ActiveDocument.Validation.RuleSets.Add "bVisual"

You can retrieve a ruleset by its index position in the collection, using ValidationRuleSets.Item(index), or by its ID using ValidationRuleSets.ItemFromID(ID). Once you have retrieved a ruleset, you can read its Name (this can be edited to be a localized version), NameU, Description (displayed as the tool tip in the UI), or check if the RuleSets is enabled for validation.

The RuleSetFlags value determines if the ruleset is visible in the Rules to Check dropdown in the UI, shown as follows:

The default value...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}