<?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: Rule to suppress features containg certain word in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5325607#M122419</link>
    <description>You are welcome.</description>
    <pubDate>Wed, 08 Oct 2014 17:49:32 GMT</pubDate>
    <dc:creator>rossano_praderi</dc:creator>
    <dc:date>2014-10-08T17:49:32Z</dc:date>
    <item>
      <title>Rule to suppress features containg certain word</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5304089#M122414</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Would it be possible that a rule can suppress all part's&amp;nbsp;features that contain in their name a certain word.&lt;/P&gt;&lt;P&gt;I use to rename features for better workflow. More features that form a part of the model can contain same word, for instance "foot": foot_extrusion; foot_plate and so on.&lt;/P&gt;&lt;P&gt;When working with ilogic I have to specify each feature name, but I was thinking that may be would be easier to suppress the features by their name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alexandru&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:39:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5304089#M122414</guid>
      <dc:creator>fakeru</dc:creator>
      <dc:date>2014-09-29T06:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to suppress features containg certain word</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5317757#M122415</link>
      <description>&lt;P&gt;Hi Alexandru,&lt;/P&gt;&lt;P&gt;this piece of code che be your solution...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main
	Fsuppress(True)
	Fsuppress(False)
End Sub

Private Sub Fsuppress(suppress As Boolean)
myparam = InputBox("Feature Name", "Feature suppress", "")
If myparam &amp;lt;&amp;gt; "" Then
	Dim oDoc as PartDocument
	oDoc = ThisApplication.ActiveDocument
	Dim oFeature As PartFeature
	For Each oFeature In oDoc.ComponentDefinition.Features
		If oFeature.Name.ToUpper.Contains(myparam.ToUpper) Then
			oFeature.Suppressed = suppress
			oDoc.Update
		End If
	Next
End If
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Bregs&lt;/P&gt;&lt;P&gt;Rossano Praderi&lt;/P&gt;</description>
      <pubDate>Sun, 05 Oct 2014 01:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5317757#M122415</guid>
      <dc:creator>rossano_praderi</dc:creator>
      <dc:date>2014-10-05T01:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to suppress features containg certain word</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5321153#M122416</link>
      <description>&lt;P&gt;Thank you, this is almost what I wanted.&lt;/P&gt;&lt;P&gt;The difference is that, I don't need the input window.&lt;/P&gt;&lt;P&gt;For example I want a rule when it will be run to suppress al features with "nozzle" word in their name.&lt;/P&gt;&lt;P&gt;I tried to adapt the code, but didn't manage &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 06:17:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5321153#M122416</guid>
      <dc:creator>fakeru</dc:creator>
      <dc:date>2014-10-07T06:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to suppress features containg certain word</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5322795#M122417</link>
      <description>&lt;P&gt;Hi Fakeru, let me know if this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;myparam = "YOUR TEXT"
Dim oDoc as PartDocument
oDoc = ThisApplication.ActiveDocument
Dim oFeature As PartFeature
For Each oFeature In oDoc.ComponentDefinition.Features
  If oFeature.Name.ToUpper.Contains(myparam.ToUpper) Then
	oFeature.Suppressed = True
	oDoc.Update
  End If
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bregs&lt;/P&gt;&lt;P&gt;Rossano Praderi&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:47:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5322795#M122417</guid>
      <dc:creator>rossano_praderi</dc:creator>
      <dc:date>2014-10-07T18:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to suppress features containg certain word</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5323853#M122418</link>
      <description>&lt;P&gt;Yes, it works! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 07:12:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5323853#M122418</guid>
      <dc:creator>fakeru</dc:creator>
      <dc:date>2014-10-08T07:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to suppress features containg certain word</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5325607#M122419</link>
      <description>You are welcome.</description>
      <pubDate>Wed, 08 Oct 2014 17:49:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rule-to-suppress-features-containg-certain-word/m-p/5325607#M122419</guid>
      <dc:creator>rossano_praderi</dc:creator>
      <dc:date>2014-10-08T17:49:32Z</dc:date>
    </item>
  </channel>
</rss>

