David 的个人资料bVisual照片日志列表更多 工具 帮助

日志


9月21日

Visio 2010 Validation Rules (part 2)

In my previous post, I began to explore the new Validation objects in the Visio 2010 Technical Preview, an I used some VBA code to do this.  Well, I have now uploaded the code to SkyDrive ( http://cid-3350d61bc93733a9.skydrive.live.com/self.aspx/Blogs/bVisualValidationExplorer.vss ), so that you can use it too!  So, this post is about using this code …

First, download the stencil and save it to you My Shapes folder (if you trust me).  This will make it available to you to use in any Visio 2010 document.

Then, whenever you want to use the code, simply open the stencil from the More Shapes / My Shapes category….

imageThe stencil will be docked with the other shape stencils, but, of course, this stencil does not have any shapes … only VBA code.

To keep it simple, I have exposed just one public macro, ThisDocument.Show Validation, which you can run by selecting the bVisualValidationExplorer.vss in the list of Macros dialogue.

image

Note, for those of you ( like me ) who had trouble finding out where to switch on the Developer ribbon, look under the Options / Advanced settings.  There you will find the Run in Developer Mode check box.:

image

So, if you have a BPMN diagram, for example, then you are able to validate it against a selected rule set:

image The bVisual Validation Explorer lists the Issues too, but it additionally displays the Name of the transgressed Rule, along with the Page and , if relevant, the Shape Name.

image

In addition, it focuses the rule that has been transgressed on the Rules tab :

image

The Test and Filter Expressions of some rules are longer that the singe line that I have allowed for in the main dialogue, so I have provided a builder button to the right of each one enables you to open the expression in a large multi-line box:

image

All of the editable properties are editable, and I have included buttons to :

  • Validate or Clear Issues in a document
  • Delete an Issue
  • Add, Delete, or Copy Rulesets, , and to Paste a copied Ruleset
  • Add and Delete Rules, or even to Add Issue of the selected rule to a nominated Shape:

image

This is based on the Microsoft Visio 2010 Technical Preview so it may not work with the full release … but I will update it if that is the case.  All the rules developer needs to know now is how to construct the Test and Filter Expressions! Hmmmm ……

评论

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。
ParkerDavi​d 在此页禁用了评论功能。

引用通告

此日志的引用通告 URL 是:
http://bvisual.spaces.live.com/blog/cns!3350D61BC93733A9!1852.trak
引用此项的网络日志