<?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 Ilogic feature counting in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8659430#M190884</link>
    <description>&lt;P&gt;Hey all,&lt;BR /&gt;I have a template of a part that I need to use a lot in my assemblies.&lt;BR /&gt;This template part only contains 1 extrude feature. (it's basically a wooden panel)&lt;BR /&gt;&lt;BR /&gt;From time to time I need to add some modifications to the part. (a cutout, a hole, ...)&lt;/P&gt;
&lt;P&gt;I would like to know if there is a way to set a custom property from "NO" to "YES" if I add extra features to the part.&lt;BR /&gt;The type of modifications differ greatly so having premade features suppressed is harldy an option.&lt;BR /&gt;&lt;BR /&gt;So to break it down:&lt;BR /&gt;If the part contains 1 feature: Value is "NO"&lt;BR /&gt;If the part contains more than 1 features: Value is "YES"&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2019 17:21:59 GMT</pubDate>
    <dc:creator>tim.kindtKA284</dc:creator>
    <dc:date>2019-03-14T17:21:59Z</dc:date>
    <item>
      <title>Ilogic feature counting</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8659430#M190884</link>
      <description>&lt;P&gt;Hey all,&lt;BR /&gt;I have a template of a part that I need to use a lot in my assemblies.&lt;BR /&gt;This template part only contains 1 extrude feature. (it's basically a wooden panel)&lt;BR /&gt;&lt;BR /&gt;From time to time I need to add some modifications to the part. (a cutout, a hole, ...)&lt;/P&gt;
&lt;P&gt;I would like to know if there is a way to set a custom property from "NO" to "YES" if I add extra features to the part.&lt;BR /&gt;The type of modifications differ greatly so having premade features suppressed is harldy an option.&lt;BR /&gt;&lt;BR /&gt;So to break it down:&lt;BR /&gt;If the part contains 1 feature: Value is "NO"&lt;BR /&gt;If the part contains more than 1 features: Value is "YES"&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 17:21:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8659430#M190884</guid>
      <dc:creator>tim.kindtKA284</dc:creator>
      <dc:date>2019-03-14T17:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic feature counting</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8659494#M190885</link>
      <description>&lt;P&gt;Yes, that is possible.&amp;nbsp; I have something similar included as part of some rules I already have.&amp;nbsp; Note that I hacked this very quickly out of an existing rule I had, so it may not be perfect as-is.&amp;nbsp; Should be enough to help get you started though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;' If a feature is Active (not suppressed), it is added the FeatureList array
For Each oFeature In oDoc.ComponentDefinition.Features
	If Feature.IsActive(oFeature.Name) Then
		FeatureList.Add(oFeature.Name)

	End If
Next


' Count the number of items in the FeatureList array
FeatureCount = FeatureList.count


' If more than one feature is detected, the "SPECIAL" custom iProperty will be filled out as "YES".
'Otherwise it will be changed to "NO", to indicate that it is the standard version of the part.

If FeatureCount &amp;gt; 1 Then
	iProperties.Value("Custom", "SPECIAL") = "YES"
	
Else
	iProperties.Value("Custom", "SPECIAL") = "NO"	
	
End If&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2019 17:42:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8659494#M190885</guid>
      <dc:creator>jtylerbc</dc:creator>
      <dc:date>2019-03-14T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic feature counting</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8660820#M190886</link>
      <description>&lt;P&gt;Great!&lt;/P&gt;
&lt;P&gt;That looks like it'll do the trick, i'll have a go at that.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 08:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/m-p/8660820#M190886</guid>
      <dc:creator>tim.kindtKA284</dc:creator>
      <dc:date>2019-03-15T08:13:46Z</dc:date>
    </item>
  </channel>
</rss>

