Auto re-layout shapes

S

SBC

Is there a way to control the layout of the Visio diagram without manually
using the “Re-layout shapes†function and without being forced to set the X-
and Y coordinates of every element when creating the Visio XML file outside
the application.
I´m not using any automation, but create the Visio XML file with XML DOM and
then opens it in Visio.
 
C

Chris Roth [MVP]

Hi SBC,

When you create a Visio XML file, you've got to do a lot more heavy lifting
yourself - I guess that's the value of having the Visio application's
automation model.

It's possible that you could buy a third-party library of layout algorithms
and use that to find the best positions for the shapes. At some point,
though, it'll be as if you're re-creating Visio outside of Visio, so to
speak : )

I don't think that you have to route the connectors in the XML file. On
opening of the doc inside of Visio, I believe that Visio will figure out the
routing. I remember having problems with this, though -- something about
having to nudge the shapes on the page to get it to work....

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 
S

SBC

Hi Chris,

Thanks for your fast reply.
That was also what I asumed but I wanted to get it verified.

Thanks for your help
/SBC
 

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