Extracting Data From Visio Using C#

T

Tamer

Hello,
i have an activity diagram , that i need to extract some information from it
the activity name (state text),the inputs,outputs of the connectors,and the
documentation property of each state

i am using C# with visio 2007

thanks in advance
 
A

Al Edlund

Obviously at a high level you have two primary tasks, shape information and
connectivity. Both of these primary functions are covered in the visio sdk
with examples.
al
 
P

Paul Herber

Hello,
i have an activity diagram , that i need to extract some information from it
the activity name (state text),the inputs,outputs of the connectors,and the
documentation property of each state

i am using C# with visio 2007

Firstly, treating an activity diagram as any normal Visio diagram,
download the VIsio SDK, this will tell you how to access shapes and
their data.
Secondly, the built-in UML diagrams hide some information in binary
data within the document, this information is in a proprietary format
and cannot be accessed.
Thirdly, the built-in UML addon prevents other addon code from
modifying the Visio UI so you may not be able to add any menus.
 
T

Tamer

Well, thank you for the quick response

first Visio SDK docuemntation is very poor (well at least to my standards)

second all the articles i have read about this explaining how to generate
the visio drawings which is not my requirements

third there is "documentation" field for each shape i would love to read it
from my C# code which i am having hard time doing it

can you please provide me with articles about this subject so i can gain
more exp.?

thanks
T.

url:http://www.ureader.com/msg/11301764.aspx
 
S

sbmack7

Well, thank you for the quick response

first Visio SDK docuemntation is very poor (well at least to my standards)

second all the articles i have read about this explaining how to generate
the visio drawings which is not my requirements

third there is "documentation" field for each shape i would love to read it
from my C# code which i am having hard time doing it

can you please provide me with articles about this subject so i can gain
more exp.?

thanks
T.

url:http://www.ureader.com/msg/11301764.aspx

Tamer,

First of all, I'm shocked! Shocked! That anyone would think that
there is a deficiency in the quality of Visio documentation.

Secondly, I always try to take the easy way out. Which means saving
the various data elements that interest you as Shape Data and then
using the Data Export functions to extract them.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top