Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: Bob33S on January 18, 2019, 11:05:59 PM

Title: Shape snap to other shape connection points
Post by: Bob33S on January 18, 2019, 11:05:59 PM
How do you make the connection point of a shape snap to the connection point of another shape?
For example, you can see this type of behavior in shapes like Racks and rack equipment.

Title: Re: Shape snap to other shape connection points
Post by: wapperdude on January 19, 2019, 01:30:14 AM
Do you mean glue or snap?

Here are some articles about connection points...
http://www.visguy.com/2006/10/12/connection-point-directions-types/ (http://www.visguy.com/2006/10/12/connection-point-directions-types/)
https://docs.microsoft.com/en-us/office/client-developer/visio/connection-points-row-connection-points-section (https://docs.microsoft.com/en-us/office/client-developer/visio/connection-points-row-connection-points-section)
http://visguy.com/vgforum/index.php?topic=1897.0 (http://visguy.com/vgforum/index.php?topic=1897.0)

Wapperdude
Title: Re: Shape snap to other shape connection points
Post by: wapperdude on January 19, 2019, 04:35:05 PM
Ah.  Just remembered this post...go to end.  Both Yacine and I have interesting examples.  http://visguy.com/vgforum/index.php?topic=8042.msg34713 (http://visguy.com/vgforum/index.php?topic=8042.msg34713)

Here's updated version of my file.

A key point, and I don't remember the sequence, but a connection points type =out will glue to type = in, but type = in will not glue to an out...or it's the other way round.  The point being there is an ordered sequence.

...And 1 more key point.  When dragging a shape to be glued to another shape, place the mouse cursor near the connection point of interest before dragging.  This helps Visio to focus on that connection point and improves the gluing process.

Title: Re: Shape snap to other shape connection points
Post by: Bob33S on January 19, 2019, 08:07:26 PM
Thanks, I see how that works.
But I still have a question.
I have attached a file with some stencils from CISCO.
Both the switch stencil and the module have all of the connection points set to Type/C 0.
The module still glues to the switch.
Why?
Title: Re: Shape snap to other shape connection points
Post by: Paul Herber on January 20, 2019, 02:57:06 PM
Can't get to the stencils, I'm being asked to sign in to a MS account.
The module shape is 1 one-dimensional shape, even though it looks like two-dimensional. That makes it a connector (rather than a standard 2D shape) which act differently.

Title: Re: Shape snap to other shape connection points
Post by: Bob33S on January 20, 2019, 07:02:48 PM
1D shape, never thought of that.
I'll have to look into why the stencil would not open for you.

Thanks to all of you for the help.
Title: Re: Shape snap to other shape connection points
Post by: Paul Herber on January 21, 2019, 04:01:20 PM
Are you using Visio Online?
Or are you saving documents/stencils in a cloud account?
Title: Re: Shape snap to other shape connection points
Post by: Bob33S on January 21, 2019, 07:06:19 PM
The directory is local but connected to a OneDrive account.
Title: Re: Shape snap to other shape connection points
Post by: Bob33S on January 21, 2019, 10:28:32 PM
Yep, it is an OneDrive issue. The file that I thought was local is not.