Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: Jennifer on August 04, 2012, 04:52:58 PM

Title: Is there a way to remove all connection points from a shape?
Post by: Jennifer on August 04, 2012, 04:52:58 PM
I found a couple of methods, but nothing simple. I really don't want to write code for what should be a straightforward task.

This one uses the shapesheet, but requires multiple operations.

http://help.wugnet.com/office2/Delete-Multiple-Connection-Points-ftopict805124.html

This thread here uses code.

http://visguy.com/vgforum/index.php?topic=3635.0

And this is generic help from Microsoft.

http://office.microsoft.com/en-us/visio-help/add-move-or-delete-connection-points-HP001231166.aspx#BM4
Title: Re: Is there a way to remove all connection points from a shape?
Post by: wapperdude on August 04, 2012, 07:48:19 PM
There is no built-in mechanism to do this.  The one caveat would be a grouped shape.  If the connection points are associated with the top-level group shape, then, ungrouping and re-grouping will eliminate the connection points.

However, ungrouping a shape can have serious consequences:  loss of shape data is one of the more significant consequence.  But, if it is a simple grouping, then, that's not an issue.

Wapperdude.
Title: Re: Is there a way to remove all connection points from a shape?
Post by: Paul Herber on August 04, 2012, 08:36:53 PM
Just deleting the connection points section should do the job if all the connection points are in one shape.
Title: Re: Is there a way to remove all connection points from a shape?
Post by: vojo on August 05, 2012, 06:29:33 PM
if a group....and if member in the group has the connection points.....then one of the cells in the shapesheet section where the display and select are will turn off all the connections for all members in the group.

I actually use this with actions to give user the ability to turn on or off connections on a per shape bases

On the shape below, right click and select/deselect the connections (may want to select wide base to see it better).    From there, you can probe the various shapesheet cells.

Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 50 (show)
Files included: 25 - 922KB. (show)
Memory used: 763KB.
Tokens: post-login.
Cache hits: 7: 0.00142s for 22,301 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]