Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Visio 2013 Business Process Diagramming and Validation

You're reading from   Microsoft Visio 2013 Business Process Diagramming and Validation Using Microsoft Visio to visualize business information is a huge aid to comprehension and clarity. Learn how with this practical guide to process diagramming and validation, written as a practical tutorial with sample code and demos.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781782178002
Length 416 pages
Edition 2nd Edition
Languages
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Overview of Process Management in Microsoft Visio 2013 FREE CHAPTER 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 ValidationRules collection

Once you have a ruleset, you can review, amend, or add to the rules within it. You can add a rule using the ValidationRules.AddRule(NameU as string) method. Note that NameU is really for use in code, since it is the Description property that is displayed in the UI. NameU that must be unique within the Rules collection of the parent ValidationRuleSet.

You can retrieve a rule by its index position in the collection, using ValidationRules.Item(index), or by its ID using ValidationRules.ItemFromID(ID). Once you have retrieved ValidationRule you can read its NameU and Description or check whether the ruleset is ignored for validation:

Public Sub EnumerateRules()
Dim doc As Visio.Document
Dim ruleSet As Visio.ValidationRuleSet
Dim rule As Visio.ValidationRule
    Set doc = Visio.ActiveDocument

    For Each ruleSet In doc.Validation.RuleSets
        If ruleSet.Enabled Then
            Debug.Print "EnumerateRules for RuleSet : " & _
    ...
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 €18.99/month. Cancel anytime