dave-howard / vsdx

vsdx - A python library for processing .vsdx files
BSD 3-Clause "New" or "Revised" License
70 stars 25 forks source link

Glue To Shape #46

Open Andrewjb0813 opened 2 years ago

Andrewjb0813 commented 2 years ago

I have been looking for a way to connect two shapes together by using the glue feature on Visio. I was wondering if there is anyway to do that in your library. I saw the connection option and when I try doing that to a bunch of shapes it creates a bunch of triangles. Any suggestions?

Thank you, Andrew

dave-howard commented 2 years ago

Hi @Andrewjb0813 ,

Hard to say what the problem might be based on that - but you might want to look at test_add_connect_between_shapes() in test_page.py

When I look at output files from that test, the connectors are not perfectly positioned, but each end of the connector is centered on the 'to' or 'from' shape.

Feel free to share your code and vsdx file here and I will take a look,

Dave