May, 2011

Visio Insights
The official blog of the Microsoft Visio product team

May, 2011

  • Visio Insights

    Visio 2010 XML Schema Definition Released


    Visio has published the XML Schema Definition (XSD) files for the Microsoft Visio 2010 XML Drawing (.vdx) format. This schema is also known as DatadiagramML. The .XSD files allow developers to better understand the structure of Visio XML documents and design solutions that work with the .VDX file format.

    The DatadiagramML Schema for Visio 2010 consists of three .XSD files:

    • visio.xsd is the core schema used by Visio 2003 and later
    • visio12.xsd is the set of extensions used by Visio 2007 and later
    • visio14.xsd is the set of extensions used by Visio 2010

    More information about the schema is available in the Visio 2010 XML Schema Reference on MSDN.

    Do you work directly with Visio XML files?  We’d love to hear about your scenarios in the comments.

  • Visio Insights

    Video: Adding a Data Graphic Legend in Visio 2010


    The video below shows how to add a Data Graphic legend to a drawing using C# code. How might you use this code within the context of constructing diagrams with Data Graphics?

    As mentioned in a previous blog post, Visio Professional 2010 and Visio Premium 2010 use container shapes to create legends for data graphics. Along with this new feature, the Visio 2010 Object Model includes new APIs that allow you to manipulate container shapes programmatically – including the Page.DropLegend method that allows you to add a Data Graphics legend to your drawing using code.

    We’ve created this how-to video about using C# to add a Data Graphics legend to a drawing page. While creating this video, we considered some of the larger scenarios where this API might be used. We’d like some feedback from you, the Visio developers and users, to learn more about how you use these features:

    · How often do you create Visio drawings that are linked to data? Do you link that data to shapes? Do you use Data Graphics to visualize the data contained in the shapes?

    · Which templates do you use most frequently to represent external data?

    · When you link a drawing to external data, which data providers do you most commonly connect to (e.g. Excel, Access, SharePoint lists, SQL Server, etc.)?

    · What other tasks do you frequently perform in addition to linking a drawing to external data?

    · How often do you use code to manipulate external data in Visio, using VBA, C#, or VB.NET? Have you ever applied data graphics to a Visio diagram using code?

    Please watch the video and submit your feedback using the comment box below this post.

    Add a Data Graphic Legend in Visio 2010 through code.

    Note: The Data Graphics legend feature is only available in Visio Professional 2010 and Visio Premium 2010.

Page 1 of 1 (2 items)