Reputation: 98
I am trying to use C# to automate some Visio Drawings. At the moment I am using the GlueTo method to connect two shapes. However, the auto-routing is not going where I'd like it to.
Is there a way I can manually enter the points that the connector should 'pass through'? (i.e. pass through (1,2), (2,4), (5,6))
I have tried modifying the 'Geometry1' section from the Connector's Shapesheet, specifically the 'MoveTo' and 'LineTo' rows. As far as I can tell, Visio does not allow this: "Operation not allowed for this row type.'"
Any help is greatly appreciated.
Upvotes: 0
Views: 476
Reputation: 1734
Few years ago in Russian Visio forum was thread Invalid coordinate value from a dynamic connector (you can read this via Microsoft Translator service)
Important: In that message
Solved the problem by adding small pauses (50 milliseconds) after each installation point.
Apparently that's enough to worked and co-ordinates Visio logic put out by the faithful.
Of course, looks like a crutch, but in this case an adequate
you can find suggest add some delay when you change connector's geometry !
PS
I have tried modifying the 'Geometry1' section from the Connector's Shapesheet, specifically the 'MoveTo' and 'LineTo' rows. As far as I can tell, Visio does not allow this: "Operation not allowed for this row type.'"
If you change row type you break this connector! Connector must have start with 'MoveTo' and few edges with 'LineTo" !!!
Upvotes: 1