Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:03:00+00:00 2026-06-08T12:03:00+00:00

I apologize if this was asked before, but after searching for some time, I

  • 0

I apologize if this was asked before, but after searching for some time, I could not find any specific answer on this.

I have an ERD diagram in Visio 2010. It has around 15 tables or so. In order to have our DBAs create the database, I have to output each column to excel sheet with the data type, primary key, description.

My first attempt was to simply copy and paste the column definitions table from the shape properties, but this does not work (thanks Microsoft!). After trying a few other things, it turned out I would have to copy every cell manually for every table – time consuming.

I turned to C# and Visio Interop for help. I am able to export the column definitions now (they are in Text property of the shape), but I can not find the property which holds the name of the table.

Does anyone know which object holds this property, or if it is even accessible?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:03:04+00:00Added an answer on June 8, 2026 at 12:03 pm

    In the end I solved it. I was unable to parse out the standard Visio drawing (.vsd) so I opted for Visio XML Drawing (.vdx). In the end, this worked for me:

    Where path is the file path to the vxd drawing. I turned out that each shape definition in the page in XML drawing has 2 shapes of its own. The first shape holds the Entity name, the second holds the Entity Columns.

    XDocument xdoc = XDocument.Load(path);
    var elements = xdoc.Elements().Elements();
    XName pageXName = XName.Get("Page","http://schemas.microsoft.com/visio/2003/core");
    var pages = elements.Elements(pageXName);
    
    foreach (XElement page in pages)
    {                
        XName shapeXName = XName.Get("Shape","http://schemas.microsoft.com/visio/2003/core");
        var shapes = from shape in page.Elements().Elements(shapeXName)
                     where shape.Attribute("Type").Value == "Group"
                     select shape;
    
        foreach (XElement shape in shapes)
        {
            var shapeShapes = shape.Elements();
            List<XElement> textShapes = shapeShapes.Elements(shapeXName).ToList();
    
            XName textXName = XName.Get("Text","http://schemas.microsoft.com/visio/2003/core");
            XName cpXName = XName.Get("Text", "http://schemas.microsoft.com/visio/2003/core");
    
            string tableName = textShapes[0].Elements(textXName).SingleOrDefault().Value;
            string columns = textShapes[1].Elements(textXName).SingleOrDefault().Value;
    
            Debug.WriteLine("-------------" + tableName.TrimEnd('\n') + "---------------");
            Debug.Write(columns);
            Debug.WriteLine("----------------------------");
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize if this question was asked already before but I could not find
I apologize if this has been asked before. I searched but did not find
Apologies if this has been asked before (I couldn't find the answer anywhere), but
I apologise if this has been asked before but I can't find the info
I have been searching here for some time but haven't been able to find
I apologize if this has been asked before, but I haven't quite found the
I apologize if this question has been asked before, but my case is a
I apologize in advance if this has been asked before, but I haven't been
If this has been asked before, I apologize but this is kinda of a
Apologies if this has been asked before but is there any way, at all,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.