Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: YossiD on June 15, 2017, 10:28:04 AM

Title: Custom shape won't snap to line at connection point
Post by: YossiD on June 15, 2017, 10:28:04 AM
I have created a shape (supposed to look like a rugged flat screen) consisting of grouped elements that scale when resizing.

When I drag the shape to a line, it won't snap at the connection point. Then I ungrouped, disassembled, reassembled, and regrouped the shape and now it snaps ok. Both shapes are in the attached file.

(http://i.imgur.com/M0rXBBl.jpg)   (http://i.imgur.com/78koVnj.jpg)

I have looked at the shapesheets for the two shapes, including sub-elements, but could not find the difference.

Can someone explain this?

[Still] using Visio Pro 2003 (SP3) on WinXP (SP3).

Thanks
Title: Re: Custom shape won't snap to line at connection point
Post by: Yacine on June 15, 2017, 10:55:19 AM
Checked your file. Both "Screens" get snapped perfectly. Can't reproduce your problem. Is "gluing to connection points" activated?
Title: Re: Custom shape won't snap to line at connection point
Post by: YossiD on June 15, 2017, 11:04:58 AM
Very strange.

Gluing to connection points is checked, and anyway shouldn't the setting affect all shapes on the page the same?

Has anyone else been able to reproduce the behavior I'm experiencing?
Title: Re: Custom shape won't snap to line at connection point
Post by: wapperdude on June 16, 2017, 03:11:25 PM
I can confirm your gluing issue.  I've seen this behavior before in V2007.  Never found a good solution.  Typically, the only thing that works was to rebuild the shape....and that wasn't 100% of the time.  Very unpredictable. My guess, for complex shapes, Visio gets confused and doesn't know which is the primary shape, even though there is a connection point.  The more complex the shape, i.e., a group with many subshapes, the more likely the problem will arise.

If you're only gluing the shape to a connector, then attaching the connector to the shape seems to work reliably.  But, gluing the shape to the connector, does not.

Wapperdude

Title: Re: Custom shape won't snap to line at connection point
Post by: Croc on June 16, 2017, 03:26:55 PM
Your groups have different number of shapes.
In Visio 2007, the group no longer glues when it contains 25 or more shapes.
In Visio 2010, this number is increased to 50.
Such topic was on the Russian forum http://visio.getbb.ru/viewtopic.php?f=3&t=1133
Title: Re: Custom shape won't snap to line at connection point
Post by: wapperdude on June 16, 2017, 03:51:45 PM
@Croc:  Can't say I've heard of that limit before.  The issue has come up from time to time.  A recent complaint here:  https://answers.microsoft.com/en-us/msoffice/forum/msoffice_visio-mso_win10/glue-will-not-work-if-group-contains-more-that-45/01123340-e0d5-40d8-ac42-950f5cc4fe49 (https://answers.microsoft.com/en-us/msoffice/forum/msoffice_visio-mso_win10/glue-will-not-work-if-group-contains-more-that-45/01123340-e0d5-40d8-ac42-950f5cc4fe49)  The reply was interesting because it contradicts this limit.

I tried to search for official MS comment on this problem, but no luck.

Wapperdude
Title: Re: Custom shape won't snap to line at connection point
Post by: YossiD on June 18, 2017, 05:38:22 AM
Thanks everyone.

Wapperdude: I too have noticed that the connector will snap/glue to the shape but not the other way around. Often that's fine, but sometimes it's much more convenient to snap/glue the shape to the connector, if the connector is at the correct position and the shape is not. Adding guides and aligning the shape with them works fine, but it's not nearly as convenient.

Croc: Interesting about the different numbers of shapes in each group, since the one that snaps/glues ok was made from the one that does not, without adding or removing any elements. Can anyone explain how that can be?

Interesting that Yacine was unable to reproduce the issue but Wapperdude could. Which versions of Visio did each of you use?
Title: Re: Custom shape won't snap to line at connection point
Post by: wapperdude on June 18, 2017, 01:13:04 PM
V2007.