I generate from an XML description, a set of visio pictures with a default
layout.
Then, in Visio, I beautify the layout and save the layout by reading
position, size and orientation from the corresponding shapesheet-cells.
However, I could not find out how to
1 - find out (in VBA) that a connection line has been set 'as straight
line', and
2 - generate (in VBA) the diagrams again with such a setting.
Could anybody give me some hints ?
Gandalf
I think, a straight line has one of the two conditions:
BeginX = EndX
or
BeginY = EndY.
or
The correspondent ConnectioPoints of the shapes must be on the same X or Y!
Test it!
Peter
--
Regards
Peter Suter
CH-3255 Rapperswil BE
(RemoveThis. from email address to contact)
--
Mark Nelson
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"gandalf" <gan...@nomail.com> wrote in message
news:3fe173f1$0$273$4d4e...@read-nat.news.nl.uu.net...
A straight connection is not an horizontal or vertical line, but the
shortest linebetween 2 connection points. The alternative is a curved line.
"Peter Suter" <p.sut...@WithoutThis.bluewin.ch> wrote in message
news:opr0dpbp...@news.microsoft.com...
I could not see any differences in the shapesheets for a straight and a
curved connection line.
Especially in the Shape Layout section, the value for shapeRouteStyle-cells
are the same. I did not see a ConLineRouteExt-cell.
The VBA statement
debug.print shape.Cells("Shape Layout.ShapeRouteStyle")
gives the error message 'Unexpected end of file', which means that the
section-name and.or cell-name is incorrect, so I would like to find all
valid names.
Is there a way to print out the contents of all shapesheet-cells in a
for-loop ?
"Mark Nelson [MS]" <mar...@online.microsoft.com> wrote in message
news:#hBQu#YxDHA...@TK2MSFTNGP10.phx.gbl...
Now I hope, it's correct:
To read:
MsgBox oShp.Cells("LineRouteExt").Formula
or
MsgBox oShp.Cells("LineRouteExt").ResultStr(0)
or
MsgBox oShp.CellsSRC(visSectionObject, visRowShapeLayout,
visSLOLineRouteExt).formula
To set:
oShp.CellsSRC(visSectionObject, visRowShapeLayout,
visSLOLineRouteExt).formula = visLORouteExtStraight
oShp.CellsSRC(visSectionObject, visRowShapeLayout,
visSLOLineRouteExt).formula = 1
Try it!
peter ;-)
On Fri, 19 Dec 2003 09:26:53 +0100, gandalf <gan...@nomail.com> wrote:
> Hi Peter,
>
> A straight connection is not an horizontal or vertical line, but the
> shortest linebetween 2 connection points. The alternative is a curved
> line.
>
--
Mark Nelson
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"gandalf" <gan...@nomail.com> wrote in message
news:3fe2b7ee$0$281$4d4e...@read-nat.news.nl.uu.net...