<?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 Include Workplanes in idw, in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12924394#M169971</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;when creating an assembly i create Custom work planes that represent the "Ground" or other theoretical levels. i normally show them using the "include" feature on the idw, I manually search my workplane name on the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to automate it in a way that ilogic searches for any specific string like the word "Ground" and will automatically include it on any view possible. I understand some views cannot include them. the program should skip to the next view. is this feature accessible through ilogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inventor_2024-07-28_13-33-57.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1391685i88400E245FDD6199/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Inventor_2024-07-28_13-33-57.png" alt="Inventor_2024-07-28_13-33-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sun, 28 Jul 2024 11:42:48 GMT</pubDate>
    <dc:creator>Alexrose1942</dc:creator>
    <dc:date>2024-07-28T11:42:48Z</dc:date>
    <item>
      <title>Include Workplanes in idw,</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12924394#M169971</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;when creating an assembly i create Custom work planes that represent the "Ground" or other theoretical levels. i normally show them using the "include" feature on the idw, I manually search my workplane name on the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to automate it in a way that ilogic searches for any specific string like the word "Ground" and will automatically include it on any view possible. I understand some views cannot include them. the program should skip to the next view. is this feature accessible through ilogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inventor_2024-07-28_13-33-57.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1391685i88400E245FDD6199/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Inventor_2024-07-28_13-33-57.png" alt="Inventor_2024-07-28_13-33-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 11:42:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12924394#M169971</guid>
      <dc:creator>Alexrose1942</dc:creator>
      <dc:date>2024-07-28T11:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Include Workplanes in idw,</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12924753#M169972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3315348"&gt;@Alexrose1942&lt;/a&gt;&amp;nbsp;.&amp;nbsp;Please try this code. You need to write down your &lt;U&gt;keywords&lt;/U&gt; in &lt;STRONG&gt;line 3&lt;/STRONG&gt; (example: {"Ground", "abc", "qwert"}).&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim oDDoc As DrawingDocument = TryCast(ThisDoc.Document, DrawingDocument)
If oDDoc Is Nothing Then Exit Sub
Dim sList() As String = {"Ground"}
For Each oSheet As Sheet In oDDoc.Sheets
	For Each oView As DrawingView In oSheet.DrawingViews 
		Dim oRefDoc As Document = oView.ReferencedDocumentDescriptor.ReferencedDocument
		For Each oPlane As WorkPlane In oRefDoc.ComponentDefinition.WorkPlanes
			For i As Integer = 0 To sList.Length - 1
				If Not oPlane.Name.Contains(sList(i)) Then Continue For
				Try : oView.SetIncludeStatus(oPlane, True) : Catch : End Try
			Next i
		Next
	Next
Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 18:40:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12924753#M169972</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2024-07-28T18:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Include Workplanes in idw,</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12925885#M169978</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13518190"&gt;@Andrii_Humeniuk&lt;/a&gt;impressive! Thank you so much!!!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:43:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/include-workplanes-in-idw/m-p/12925885#M169978</guid>
      <dc:creator>Alexrose1942</dc:creator>
      <dc:date>2024-07-29T10:43:36Z</dc:date>
    </item>
  </channel>
</rss>

