Message 1 of 3

Not applicable
07-17-2015
11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The following snippit of iLogic code will count the number of features in a part that are active (not suppressed). I'm wondering how to tweak it so that it doesn't include features that are below the end of part mark.
SyntaxEditor Code Snippet
' This looks at the number of features in the part' It then sets a shared variable "Feature_Count" equal to the number of features found Dim openDoc As Document openDoc = ThisDoc.Document Dim FeatureList As New ArrayList ' If a feature is Active (not suppressed), it is added the FeatureList array For Each oFeature In openDoc.ComponentDefinition.Features If Feature.IsActive(oFeature.Name) Then FeatureList.add(oFeature.Name) End If Next ' Count the number of items in the FeatureList array SharedVariable("Feature_Count") = FeatureList.count
Solved! Go to Solution.