<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Please help with ilogic window selection method and loop in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409802#M16125</link>
    <description>&lt;P class="lia-align-left"&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SelectEventsObject_WindowSelectEnabled_Sample" target="_blank" rel="noopener"&gt;Here is a starting point with VBA API Sample.&lt;/A&gt;&amp;nbsp;I suggest you run it in VBA first and select the geometry that it is identifying. Once you have it running then you can convert to VB.NET to run in the iLogic environment. If you have any trouble converting post up the error messages from the more info page.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 02:01:04 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2023-11-30T02:01:04Z</dc:date>
    <item>
      <title>Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409533#M16124</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have developed a rule to place centerlines on slotted holes on the drawing sheet.&lt;/P&gt;&lt;P&gt;It works by selecting the curves of a single slot, (so i window over the slot and get 2 arcs and 2 lines)&lt;/P&gt;&lt;P&gt;then run the rule.&amp;nbsp;The rule then adds a bisector between the pair of arcs and and another between the pair of lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works well, but I would like improve the process by adding a loop where i can continuously window select slot curves and it will add the bisector in between selection events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please help with the loop and the window selection code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using INV Pro 2024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oDoc As DrawingDocument = ThisDrawing.Document
Dim osheet As Sheet = oDoc.ActiveSheet
Dim oSSet As SelectSet = oDoc.SelectSet

Dim oArcsCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection 
Dim oLineCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection 


If oSSet.Count = 0 Then
    MessageBox.Show("You no pick stuff first", "Crap", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
		For Each obj As DrawingCurveSegment In oSSet
			If obj.GeometryType = 5253 Then
				oArcsCol.Add(osheet.CreateGeometryIntent(obj.Parent))
			Else
				oLineCol.Add(osheet.CreateGeometryIntent(obj.Parent))			
	        End If
	    Next
End If

osheet.Centerlines.AddBisector(oArcsCol.Item(1),oArcsCol.Item(2))
osheet.Centerlines.AddBisector(oLineCol.Item(1),oLineCol.Item(2))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 22:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409533#M16124</guid>
      <dc:creator>xenocatalyst</dc:creator>
      <dc:date>2023-11-29T22:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409802#M16125</link>
      <description>&lt;P class="lia-align-left"&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SelectEventsObject_WindowSelectEnabled_Sample" target="_blank" rel="noopener"&gt;Here is a starting point with VBA API Sample.&lt;/A&gt;&amp;nbsp;I suggest you run it in VBA first and select the geometry that it is identifying. Once you have it running then you can convert to VB.NET to run in the iLogic environment. If you have any trouble converting post up the error messages from the more info page.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 02:01:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409802#M16125</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-11-30T02:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409873#M16126</link>
      <description>&lt;P&gt;Hi Alan, thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have already tried this and unfortunately I am out of my depth.&lt;/P&gt;&lt;P&gt;I just cant understand how to use subs and functions properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is when i decided to ask for help.&lt;/P&gt;&lt;P&gt;But I'll keep trying.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 02:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12409873#M16126</guid>
      <dc:creator>xenocatalyst</dc:creator>
      <dc:date>2023-11-30T02:56:59Z</dc:date>
    </item>
    <item>
      <title>回复： Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12411067#M16127</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GIF 2023-11-30 22-59-33.gif" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1299254i0EDE327A26199E3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="GIF 2023-11-30 22-59-33.gif" alt="GIF 2023-11-30 22-59-33.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Class ThisRule
	Sub main
       Dim oSelect As New Selectwindow(ThisApplication)
	   oSelect.WindowSelect
	End Sub
End Class

Class Selectwindow
	Private WithEvents oInteractEvents As InteractionEvents
	Private WithEvents oSelectEvents As SelectEvents
	Private ThisApplication As Inventor.Application

	Sub New(ThisApplication As Inventor.Application)
		Me.ThisApplication = ThisApplication
	End Sub

	Sub WindowSelect()
		oInteractEvents = ThisApplication.CommandManager.CreateInteractionEvents
		oInteractEvents.InteractionDisabled = False
		oSelectEvents = oInteractEvents.SelectEvents
		oSelectEvents.WindowSelectEnabled = True
		oInteractEvents.StatusBarText = "Window select. Esc to exit."
        oInteractEvents.Start
	End Sub
	
	Private Sub oInteractEvents_OnTerminate() Handles oInteractEvents.OnTerminate
		oSelectEvents = Nothing
		oInteractEvents = Nothing
    End Sub
	
	Private Sub oSelectEvents_OnSelect(JustSelectedEntities As ObjectsEnumerator, 
									   SelectionDevice As SelectionDeviceEnum, 
									   ModelPosition As Point, 
									   ViewPosition As Point2d, 
									   View As View) Handles oSelectEvents.OnSelect
		 If JustSelectedEntities.Count Mod 4 &amp;lt;&amp;gt; 0  OrElse  JustSelectedEntities.Count = 0 Then Return
		 SlotCenterLine(GroupLine(JustSelectedEntities.OfType(Of DrawingCurveSegment).ToList()))
	End Sub
  
	Function GroupLine(oSSet As List(Of DrawingCurveSegment)) As List(Of List(Of DrawingCurveSegment))
		Dim oList As New List(Of List(Of DrawingCurveSegment))
		For Each oCurve In oSSet 
			If oList.Any(Function(item) item.Contains(oCurve)) Then Continue For
			Dim Templist As New List(Of DrawingCurveSegment)
			Templist.Add(oCurve)
			Dim oEdge As Edge = oCurve.Parent.ModelGeometry
			For Each item In  oSSet
				Dim iEdge As Edge = item .Parent.ModelGeometry
				If oEdge.TangentiallyConnectedEdges.OfType(Of Edge).Any(Function(e) e.TransientKey = iEdge.TransientKey) Then
					If Not Templist.Contains(item) Then Templist.Add(item)
				End If
			Next
			oList.Add(Templist)
		Next
		Return oList
	End Function

	Private Sub SlotCenterLine(oSSet As List(Of List(Of DrawingCurveSegment)))
		Dim osheet As Sheet = ThisApplication.ActiveDocument.ActiveSheet
		For Each LineGroup In oSSet
			Dim oArcsCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
		    Dim oLineCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
			For Each obj As DrawingCurveSegment In LineGroup
				If obj.GeometryType = 5253 Then
					oArcsCol.Add(osheet.CreateGeometryIntent(obj.Parent))
				Else
					oLineCol.Add(osheet.CreateGeometryIntent(obj.Parent))			
			    End If
		    Next
			osheet.Centerlines.AddBisector(oArcsCol.Item(1),oArcsCol.Item(2))
	        osheet.Centerlines.AddBisector(oLineCol.Item(1),oLineCol.Item(2))
	    Next
	End Sub
End Class&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 Nov 2023 15:05:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12411067#M16127</guid>
      <dc:creator>yuzeaa</dc:creator>
      <dc:date>2023-11-30T15:05:40Z</dc:date>
    </item>
    <item>
      <title>回复： Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12412027#M16128</link>
      <description>&lt;P&gt;Wow&amp;nbsp;yuzeaa163_com&amp;nbsp;that is fantastic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code goes beyond what I asked for and makes it more usable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like the part where you were able to check if the curves were part of the same edge.&lt;/P&gt;&lt;P&gt;I didn't realize that Edge's where a thing.&lt;/P&gt;&lt;P&gt;Looking through the API object model, I see they are part of the B-Rep group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 22:33:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12412027#M16128</guid>
      <dc:creator>xenocatalyst</dc:creator>
      <dc:date>2023-11-30T22:33:56Z</dc:date>
    </item>
    <item>
      <title>回复： Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12933380#M16129</link>
      <description>&lt;P&gt;Would you be willing to show me some syntax for how window selection could work to select occurrences in the assembly environment?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:09:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12933380#M16129</guid>
      <dc:creator>HogueOne</dc:creator>
      <dc:date>2024-08-01T13:09:28Z</dc:date>
    </item>
    <item>
      <title>回复： Please help with ilogic window selection method and loop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12933615#M16130</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15627804"&gt;@HogueOne&lt;/a&gt;,&amp;nbsp;I had this example to window select assembly components on hand ( I likely got a variation of it from this forum... thanks to whoever provided it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;

	&lt;SPAN&gt;'create the selectionclass&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSelection&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;clsSelect&lt;/SPAN&gt;
	&lt;SPAN&gt;'call the window select sub in the class&lt;/SPAN&gt;
	&lt;SPAN&gt;oSelection&lt;/SPAN&gt;.&lt;SPAN&gt;WindowSelect&lt;/SPAN&gt;(&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;)

	&lt;SPAN&gt;'exit sub if getting the count creates an error ( user escaped with nothing selected)&lt;/SPAN&gt;
	&lt;SPAN&gt;Try&lt;/SPAN&gt; : &lt;SPAN&gt;iCount&lt;/SPAN&gt; = &lt;SPAN&gt;oSelection&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedObjects&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt; : &lt;SPAN&gt;Catch&lt;/SPAN&gt; : &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; : &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

	&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;iCount&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" component(s) selected."&lt;/SPAN&gt;, , &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)

	&lt;SPAN&gt;'do something with the selected components&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oSelection&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedObjects&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Color&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;) = &lt;SPAN&gt;"Red"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Color&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;) = &lt;SPAN&gt;"Green"&lt;/SPAN&gt;
		&lt;SPAN&gt;Else&lt;/SPAN&gt;
			&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Color&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;) = &lt;SPAN&gt;"Red"&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;


&lt;SPAN&gt;Class&lt;/SPAN&gt; &lt;SPAN&gt;clsSelect&lt;/SPAN&gt;
	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;WithEvents&lt;/SPAN&gt; &lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;InteractionEvents&lt;/SPAN&gt;
	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;WithEvents&lt;/SPAN&gt; &lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SelectEvents&lt;/SPAN&gt;
	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;bTooltipEnabled&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt;
	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Application&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;SelectedObjects&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectsEnumerator&lt;/SPAN&gt;
	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;stillSelecting&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;

	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;WindowSelect&lt;/SPAN&gt;(&lt;SPAN&gt;oApp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Application&lt;/SPAN&gt;)
		&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt; = &lt;SPAN&gt;oApp&lt;/SPAN&gt;
		&lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;CreateInteractionEvents&lt;/SPAN&gt;
		&lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt;.&lt;SPAN&gt;InteractionDisabled&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt; = &lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt;.&lt;SPAN&gt;SelectEvents&lt;/SPAN&gt;

		&lt;SPAN&gt;'filters for only parts/ leaf occurrences&lt;/SPAN&gt;
		&lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt;.&lt;SPAN&gt;AddSelectionFilter&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyLeafOccurrenceFilter&lt;/SPAN&gt;)
		&lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt;.&lt;SPAN&gt;WindowSelectEnabled&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;bTooltipEnabled&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralOptions&lt;/SPAN&gt;.&lt;SPAN&gt;ShowCommandPromptTooltips&lt;/SPAN&gt;
		&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralOptions&lt;/SPAN&gt;.&lt;SPAN&gt;ShowCommandPromptTooltips&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;

		&lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt;.&lt;SPAN&gt;StatusBarText&lt;/SPAN&gt; = &lt;SPAN&gt;"Select components. CTRL to deselect, ESC to finish."&lt;/SPAN&gt;
		&lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt;.&lt;SPAN&gt;Start&lt;/SPAN&gt;()
		&lt;SPAN&gt;While&lt;/SPAN&gt; &lt;SPAN&gt;stillSelecting&lt;/SPAN&gt;
			&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;DoEvents&lt;/SPAN&gt;()
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;While&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;oInteractEvents_OnTerminate&lt;/SPAN&gt;() &lt;SPAN&gt;Handles&lt;/SPAN&gt; &lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt;.&lt;SPAN&gt;OnTerminate&lt;/SPAN&gt;
		&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralOptions&lt;/SPAN&gt;.&lt;SPAN&gt;ShowCommandPromptTooltips&lt;/SPAN&gt; = &lt;SPAN&gt;bTooltipEnabled&lt;/SPAN&gt;
		&lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt; = &lt;SPAN&gt;Nothing&lt;/SPAN&gt;
		&lt;SPAN&gt;oInteractEvents&lt;/SPAN&gt; = &lt;SPAN&gt;Nothing&lt;/SPAN&gt;
		&lt;SPAN&gt;stillSelecting&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;oSelectEvents_OnSelect&lt;/SPAN&gt;(&lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;JustSelectedEntities&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectsEnumerator&lt;/SPAN&gt;,
		&lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;SelectionDevice&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SelectionDeviceEnum&lt;/SPAN&gt;, &lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;ModelPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point&lt;/SPAN&gt;,
		&lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;ViewPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;, &lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;View&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;View&lt;/SPAN&gt;) &lt;SPAN&gt;Handles&lt;/SPAN&gt; &lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt;.&lt;SPAN&gt;OnSelect&lt;/SPAN&gt;

		&lt;SPAN&gt;SelectedObjects&lt;/SPAN&gt; = &lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedEntities&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

	&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;oSelectEvents_OnUnSelect&lt;/SPAN&gt;(&lt;SPAN&gt;UnSelectedEntities&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectsEnumerator&lt;/SPAN&gt;,
		&lt;SPAN&gt;SelectionDevice&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SelectionDeviceEnum&lt;/SPAN&gt;, &lt;SPAN&gt;ModelPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point&lt;/SPAN&gt;,
		&lt;SPAN&gt;ViewPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;, &lt;SPAN&gt;View&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;View&lt;/SPAN&gt;) &lt;SPAN&gt;Handles&lt;/SPAN&gt; &lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt;.&lt;SPAN&gt;OnUnSelect&lt;/SPAN&gt;

		&lt;SPAN&gt;SelectedObjects&lt;/SPAN&gt; = &lt;SPAN&gt;oSelectEvents&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedEntities&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Class&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 17:12:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/please-help-with-ilogic-window-selection-method-and-loop/m-p/12933615#M16130</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-08-01T17:12:38Z</dc:date>
    </item>
  </channel>
</rss>

