<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Connect All Shapes to Each Other</title>
	<atom:link href="http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/</link>
	<description>Shapes, Stencils, Drawings Templates, Tutorials, Tips &#38; Developer Info for Microsoft Visio</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:20:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-23606</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Mon, 09 Nov 2009 10:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-23606</guid>
		<description>Lars-Erik is BACK!

I am glad you figured out something useful to do with this, and that you realized it was just supposed to be sample code for instructional purposes.

Some people seemed to think the example itself was supposed to be for real-world situations! (Hehehe I&#039;m just teasing Art Braune!)

If people are wondering how to glue to specific connection points, then here&#039;s some more info.

Say we&#039;ve got two shapes. One has a connection point named &quot;out&quot; and the other has a connection point named &quot;in&quot;. The cell names for these points would look like:

Shape 1
Connections.out  (or &quot;.out.x&quot;)
Connections.out.y


Shape 2
Connections.in  (or &quot;.in.x&quot;)
Connections.in.y

You can glue a connector to the specific points by using these cell names:

// Connect its Begin to the &#039;From&#039; shape:            shpConn.get_CellsU(&quot;BeginX&quot;).GlueTo(shpFrom.get_CellsU(&quot;Connections.out&quot;));

// Connect its End to the &#039;To&#039; shape:         shpConn.get_CellsU(&quot;EndX&quot;).GlueTo(shpTo.get_CellsU(&quot;Connections.in&quot;));</description>
		<content:encoded><![CDATA[<p>Lars-Erik is BACK!</p>
<p>I am glad you figured out something useful to do with this, and that you realized it was just supposed to be sample code for instructional purposes.</p>
<p>Some people seemed to think the example itself was supposed to be for real-world situations! (Hehehe I&#8217;m just teasing Art Braune!)</p>
<p>If people are wondering how to glue to specific connection points, then here&#8217;s some more info.</p>
<p>Say we&#8217;ve got two shapes. One has a connection point named &#8220;out&#8221; and the other has a connection point named &#8220;in&#8221;. The cell names for these points would look like:</p>
<p>Shape 1<br />
Connections.out  (or &#8220;.out.x&#8221;)<br />
Connections.out.y</p>
<p>Shape 2<br />
Connections.in  (or &#8220;.in.x&#8221;)<br />
Connections.in.y</p>
<p>You can glue a connector to the specific points by using these cell names:</p>
<p>// Connect its Begin to the &#8216;From&#8217; shape:            shpConn.get_CellsU(&#8220;BeginX&#8221;).GlueTo(shpFrom.get_CellsU(&#8220;Connections.out&#8221;));</p>
<p>// Connect its End to the &#8216;To&#8217; shape:         shpConn.get_CellsU(&#8220;EndX&#8221;).GlueTo(shpTo.get_CellsU(&#8220;Connections.in&#8221;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars-Erik Miedema</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-23599</link>
		<dc:creator>Lars-Erik Miedema</dc:creator>
		<pubDate>Fri, 06 Nov 2009 09:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-23599</guid>
		<description>Thanks Chris, this did the trick.
Used some parts of you code to connect shapes. 
Some small changes, and now it connects using the connection points instead of the shape itself.

- Lars</description>
		<content:encoded><![CDATA[<p>Thanks Chris, this did the trick.<br />
Used some parts of you code to connect shapes.<br />
Some small changes, and now it connects using the connection points instead of the shape itself.</p>
<p>- Lars</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-18037</link>
		<dc:creator>gabriel</dc:creator>
		<pubDate>Thu, 08 May 2008 21:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-18037</guid>
		<description>are there any other variables that need to be changed?

i just want to connect my shapes to each other...</description>
		<content:encoded><![CDATA[<p>are there any other variables that need to be changed?</p>
<p>i just want to connect my shapes to each other&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-17933</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Mon, 05 May 2008 06:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-17933</guid>
		<description>Hi Gabriel

You can get a page a number of ways:

dim pg as Visio.Page
Set pg = Visio.ActiveDocument.Pages.Item(3) &#039;...index
Set pg = Visio.ActiveDocument.Pages.Item(&quot;Page-1&quot;) &#039;...name

You can loop through all pages like this:

For Each pg in doc.Pages
...
Next pg

- Chris</description>
		<content:encoded><![CDATA[<p>Hi Gabriel</p>
<p>You can get a page a number of ways:</p>
<p>dim pg as Visio.Page<br />
Set pg = Visio.ActiveDocument.Pages.Item(3) &#8216;&#8230;index<br />
Set pg = Visio.ActiveDocument.Pages.Item(&#8220;Page-1&#8243;) &#8216;&#8230;name</p>
<p>You can loop through all pages like this:</p>
<p>For Each pg in doc.Pages<br />
&#8230;<br />
Next pg</p>
<p>- Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-17864</link>
		<dc:creator>gabriel</dc:creator>
		<pubDate>Fri, 02 May 2008 21:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-17864</guid>
		<description>hi

i looked over the resources but still havent figured it out. I am not looking to learn vba, I just want to run this one script. Do I need to change variables in your script? Like since I&#039;ve named my pages should I change the &quot;pg&quot; in &quot;Call m_ConnectAllShapes(pg)&quot; to the name of one of my pages?

help?
gabriel</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>i looked over the resources but still havent figured it out. I am not looking to learn vba, I just want to run this one script. Do I need to change variables in your script? Like since I&#8217;ve named my pages should I change the &#8220;pg&#8221; in &#8220;Call m_ConnectAllShapes(pg)&#8221; to the name of one of my pages?</p>
<p>help?<br />
gabriel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-17845</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Fri, 02 May 2008 06:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-17845</guid>
		<description>Hi Gabriel,

Well, that&#039;s a big subject to cover, but I can point you to some articles that might help:

John Goldsmith&#039;s &lt;a href=&quot;http://visualsignals.typepad.co.uk/vislog&quot; rel=&quot;nofollow&quot;&gt;visLog&lt;/a&gt; has a nice introductory article to get you going on Visio&#039;s ShapeSheet and VBA - Visual Basic for Applications - coding. See this article: &lt;a href = &quot;http://visualsignals.typepad.co.uk/vislog/2007/10/just-for-starte.html&quot; rel=&quot;nofollow&quot;&gt;Just for starters&lt;/a&gt;

Also, a few articles on Visio Guy will be of help:
&lt;a href=&quot;http://www.visguy.com/2007/05/17/vba-macro-security/&quot; rel=&quot;nofollow&quot;&gt;VBA Macro Security&lt;/a&gt;
&lt;a href=&quot;http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/&quot; rel=&quot;nofollow&quot;&gt;Run VBA Code When Documents Open&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Gabriel,</p>
<p>Well, that&#8217;s a big subject to cover, but I can point you to some articles that might help:</p>
<p>John Goldsmith&#8217;s <a  href="http://visualsignals.typepad.co.uk/vislog" rel="nofollow">visLog</a> has a nice introductory article to get you going on Visio&#8217;s ShapeSheet and VBA &#8211; Visual Basic for Applications &#8211; coding. See this article: <a  href="http://visualsignals.typepad.co.uk/vislog/2007/10/just-for-starte.html" rel="nofollow">Just for starters</a></p>
<p>Also, a few articles on Visio Guy will be of help:<br />
<a  href="http://www.visguy.com/2007/05/17/vba-macro-security/" rel="nofollow">VBA Macro Security</a><br />
<a  href="http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/" rel="nofollow">Run VBA Code When Documents Open</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-17833</link>
		<dc:creator>gabriel</dc:creator>
		<pubDate>Thu, 01 May 2008 23:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-17833</guid>
		<description>Hi

I have never used VBeditor before and I am trying to use your script. I was able to insert the script in the Visual Basic Editor through Visio 2007 but then I am not sure what to do after that. I chose the macro after this step but it didnt do anything. Can you explain to this dummy how to get it going?

thanks!</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I have never used VBeditor before and I am trying to use your script. I was able to insert the script in the Visual Basic Editor through Visio 2007 but then I am not sure what to do after that. I chose the macro after this step but it didnt do anything. Can you explain to this dummy how to get it going?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-17331</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Tue, 18 Mar 2008 16:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-17331</guid>
		<description>Hi Art,

Well storage is cheap these days...

...and like I mentioned above, it might be a good piece of code to start with. 

A Visio developer could modify the shape-filtering in m_shapesToConnect to do something a bit more useful - like connect all Routers together or something.

- Chris</description>
		<content:encoded><![CDATA[<p>Hi Art,</p>
<p>Well storage is cheap these days&#8230;</p>
<p>&#8230;and like I mentioned above, it might be a good piece of code to start with. </p>
<p>A Visio developer could modify the shape-filtering in m_shapesToConnect to do something a bit more useful &#8211; like connect all Routers together or something.</p>
<p>- Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Art Braune</title>
		<link>http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/comment-page-1/#comment-17328</link>
		<dc:creator>Art Braune</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/17/connect-all-shapes-to-each-other/#comment-17328</guid>
		<description>Wow - this is the weirdest Visio request and solution I have seen so far...</description>
		<content:encoded><![CDATA[<p>Wow &#8211; this is the weirdest Visio request and solution I have seen so far&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/28 queries in 0.010 seconds using disk: basic
Object Caching 464/492 objects using disk: basic
Content Delivery Network via N/A

Served from: www.visguy.com @ 2012-02-12 00:22:27 -->
