Converting a .VSD to a .VDX

A

aGo

Willing to pay for this. I would like to convert a .VSD to .VDX so I can
then search the visio chart for 'text' words. I've been doing this manually
by opening up the .VSD and saving it as a .VDX but it is very time consuming.
I would like to have a batch script (is this the correct terminology) that
would read a directory with all the .VSD and somehow create a .VDX. I tried
renaming a .VSD to a .VDX but it will not let me open it.
 
D

David Parker [Visio MVP]

Your solution suggests that you have Visio already. Which version?
It wouldn't be difficult to write VB(A) to perform your request.

Alternatively, if you haven't got Visio, and the text is in a custom
property, then you can use the free Visio Viewer and some code to search for
a string.
 
D

David Parker [Visio MVP]

Oh, and of course, if you have Visio 2003, then SaveAsWeb will create a more
compact XML file, which will have the text nodes in it.
The web pages can include text search, using JavaScript that checks the XML.
 
A

aGo

Yes, I have Visio 2003. You mentioned in the previous reply that a VB(A)
might be easy to write. Could you do that for me (I'm a mainframe programmer
with limited knowledge of the PC programming world). $$.
 
D

David Parker [Visio MVP]

Best email me direct...

aGo said:
Yes, I have Visio 2003. You mentioned in the previous reply that a VB(A)
might be easy to write. Could you do that for me (I'm a mainframe
programmer
with limited knowledge of the PC programming world). $$.
 
J

John Marshall, MVP

David Parker said:
Oh, and of course, if you have Visio 2003, then SaveAsWeb will create a
more compact XML file, which will have the text nodes in it.
The web pages can include text search, using JavaScript that checks the
XML.

Doesn't SaveAs Web save in HTML format?

John...
 
J

John Marshall, MVP

The renaming will not work because the internal format of the file has not
changed. You need to Save As *.vdx.

This can be automated using VBA and the VBA code can open each file in a
directory and save it as a vdx file. I'm sure David will help out with this.

The next question is, is this is the best solution for what you are trying
to do. Why are you trying to mine text from a Visio drawing. It may be
possible to obtain the information directly from the Visio drawing and save
the step of creating the vdxs.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 
J

John Marshall, MVP

David Parker said:
Oh, and of course, if you have Visio 2003, then SaveAsWeb will create a
more compact XML file, which will have the text nodes in it.
The web pages can include text search, using JavaScript that checks the
XML.
Doesn't SaveAs Web save in HTML format?

John...
 
J

John Marshall, MVP

The renaming will not work because the internal format of the file has not
changed. You need to Save As *.vdx.

This can be automated using VBA and the VBA code can open each file in a
directory and save it as a vdx file. I'm sure David will help out with this.

The next question is, is this is the best solution for what you are trying
to do. Why are you trying to mine text from a Visio drawing. It may be
possible to obtain the information directly from the Visio drawing and save
the step of creating the vdxs.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 
D

David Parker [Visio MVP]

It also outputs a data.xml file that provides access to pages, layers,
shapes, hyperlinks, custom properties & SOlutionXML.
 

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