<?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: Detect Sub-selected Shapes Programmatically</title>
	<atom:link href="http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/</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/05/17/detect-sub-selected-shapes-programmatically/comment-page-1/#comment-24886</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Tue, 12 Oct 2010 10:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/?p=861#comment-24886</guid>
		<description>Hi Eric,

You can add the rectangles to a selection object as you draw:

[code lang=&quot;vb&quot;]
Sub DoEricsStuff()

  &#039;// Create an empty selection:
  Dim sel As Visio.Selection
  Set sel = Visio.ActivePage.CreateSelection( _
              Visio.VisSelectionTypes.visSelTypeEmpty)

  &#039;// Draw some rectangles and add them to the selection:
  Dim i As Integer
  Dim shp As Visio.Shape
  For i = 1 To 10
  
    &#039;// Draw the rectangles according to i, just for testing
    Set shp = Visio.ActivePage.DrawRectangle( _
                                i, i, i + 0.5, i + 0.5)

    &#039;// Add the shape to the selection:
    Call sel.Select(shp, Visio.VisSelectArgs.visSelect)
    
    &#039;// Select sel in the active window:
    ActiveWindow.Selection = sel

  Next i

End Sub

[/code]</description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>You can add the rectangles to a selection object as you draw:</p>
<pre class="brush: vb; title: ; notranslate">
Sub DoEricsStuff()

  '// Create an empty selection:
  Dim sel As Visio.Selection
  Set sel = Visio.ActivePage.CreateSelection( _
              Visio.VisSelectionTypes.visSelTypeEmpty)

  '// Draw some rectangles and add them to the selection:
  Dim i As Integer
  Dim shp As Visio.Shape
  For i = 1 To 10

    '// Draw the rectangles according to i, just for testing
    Set shp = Visio.ActivePage.DrawRectangle( _
                                i, i, i + 0.5, i + 0.5)

    '// Add the shape to the selection:
    Call sel.Select(shp, Visio.VisSelectArgs.visSelect)

    '// Select sel in the active window:
    ActiveWindow.Selection = sel

  Next i

End Sub
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/comment-page-1/#comment-24865</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 08 Oct 2010 13:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/?p=861#comment-24865</guid>
		<description>Ok an opposite approach. I have a VBA mess of procedures that draw a rectangle called large retangle, then in my large rectangle I draw another smaller rectange with a verysmall rectagle likeshape in the smaller rectangle. then  duplicate the two smaller rectangles by an i value lets say 9 of them in a vertical row on the left hand edge of the larger rectangle. now I want to select the bigger rectangle and all of the smaller rectangles with in it then do one rectangle group.
 What I find on the Web hasn&#039;t helped and I am stuck. ie
The web has me select all the shapes on my page which there is alot and I don&#039;t want that.... I just want to select all of the shapes in the newly drawn rectangles and then group them.  I nameded each shape sheet The larger rectagle &quot;large_rectangle, the Smaller rectangle small_rectangle and the verysmall rectangle V_S_Rec. each one comes up with a .## for indexing, my question is how canI use VBA to select the large rectangle, then select all of the 9 smalls and 9 very smalls then group them?
thanks in advance</description>
		<content:encoded><![CDATA[<p>Ok an opposite approach. I have a VBA mess of procedures that draw a rectangle called large retangle, then in my large rectangle I draw another smaller rectange with a verysmall rectagle likeshape in the smaller rectangle. then  duplicate the two smaller rectangles by an i value lets say 9 of them in a vertical row on the left hand edge of the larger rectangle. now I want to select the bigger rectangle and all of the smaller rectangles with in it then do one rectangle group.<br />
 What I find on the Web hasn&#8217;t helped and I am stuck. ie<br />
The web has me select all the shapes on my page which there is alot and I don&#8217;t want that&#8230;. I just want to select all of the shapes in the newly drawn rectangles and then group them.  I nameded each shape sheet The larger rectagle &#8220;large_rectangle, the Smaller rectangle small_rectangle and the verysmall rectangle V_S_Rec. each one comes up with a .## for indexing, my question is how canI use VBA to select the large rectangle, then select all of the 9 smalls and 9 very smalls then group them?<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy &#187; Getting a Handle on Selecting and Subselecting Visio Shapes</title>
		<link>http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/comment-page-1/#comment-23477</link>
		<dc:creator>Visio Guy &#187; Getting a Handle on Selecting and Subselecting Visio Shapes</dc:creator>
		<pubDate>Tue, 13 Oct 2009 11:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/?p=861#comment-23477</guid>
		<description>[...] If you are a developer, you might be interested in further technical information regarding selecting and sub-selecting of Visio shapes via automation. Have a look at: Visio Guy » Detect Sub-selected Shapes Programmatically! [...]</description>
		<content:encoded><![CDATA[<p>[...] If you are a developer, you might be interested in further technical information regarding selecting and sub-selecting of Visio shapes via automation. Have a look at: Visio Guy » Detect Sub-selected Shapes Programmatically! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/comment-page-1/#comment-21426</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Sun, 02 Nov 2008 11:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/?p=861#comment-21426</guid>
		<description>Hi,

For some reason, I can&#039;t change the IterationMode of the page in my own application. It is always 1280 (the default) no matter what I do. So far I&#039;ve tried to change it before any selections are made (right after the page was created) and in the SelectionChanged event handler.

Any ideas what might cause this kind of behavior? Are there any other ways of detecting sub-selected shapes?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>For some reason, I can&#8217;t change the IterationMode of the page in my own application. It is always 1280 (the default) no matter what I do. So far I&#8217;ve tried to change it before any selections are made (right after the page was created) and in the SelectionChanged event handler.</p>
<p>Any ideas what might cause this kind of behavior? Are there any other ways of detecting sub-selected shapes?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/comment-page-1/#comment-18314</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Sat, 24 May 2008 18:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/?p=861#comment-18314</guid>
		<description>Thanks Steve,

I&#039;ve corrected the comment, as you correctly specified!

- Chris</description>
		<content:encoded><![CDATA[<p>Thanks Steve,</p>
<p>I&#8217;ve corrected the comment, as you correctly specified!</p>
<p>- Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Bolman</title>
		<link>http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/comment-page-1/#comment-18313</link>
		<dc:creator>Steve Bolman</dc:creator>
		<pubDate>Sat, 24 May 2008 17:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/?p=861#comment-18313</guid>
		<description>Thanks, Great article and the code is well annotated.   While it is clear from the context, I would like to point out to others that there is a small typo second reference to “normally selected  shapes” in the annotation below.   This annotation should read “sub-selected shapes”.
&#039;// Get the normally selected shapes:
        sel.IterationMode = Visio.VisSelectMode.visSelModeOnlySub + _
                           Visio.VisSelectMode.visSelModeSkipSuper

Please advise if I am mistaken in my interpretation.
Please keep up the good work,  I am hoping to  get up to speed someday.</description>
		<content:encoded><![CDATA[<p>Thanks, Great article and the code is well annotated.   While it is clear from the context, I would like to point out to others that there is a small typo second reference to “normally selected  shapes” in the annotation below.   This annotation should read “sub-selected shapes”.<br />
&#8216;// Get the normally selected shapes:<br />
        sel.IterationMode = Visio.VisSelectMode.visSelModeOnlySub + _<br />
                           Visio.VisSelectMode.visSelModeSkipSuper</p>
<p>Please advise if I am mistaken in my interpretation.<br />
Please keep up the good work,  I am hoping to  get up to speed someday.</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 7/21 queries in 0.007 seconds using disk: basic
Object Caching 409/422 objects using disk: basic
Content Delivery Network via N/A

Served from: www.visguy.com @ 2012-02-12 08:42:35 -->
