Reference feature inside assembly will not identify as suppressed even though it is in feature tree

It looks as if my macro is not recognizing that the component in the assembly is suppressed. I am using the statement:

Dim swModel As SldWorks.ModelDoc2

Dim swFeature As Feature

Dim swFeatureManager  As FeatureManager

Set swFeatureManager = swModel.FeatureManager

If swFeature.GetTypeName2 = "Reference" Then

     If swFeature.IsSuppressed Then

          'skip over

     Else

          'do stuff

     End If

End If

However, this does not seem to work. Even if the reference feature is suppressed in the feature tree, it never moves in to the 'skip' over section. Note that this statement is inside its own recursion loop so it retrieves the state for all of the components. If more code is needed to debug the problem, I can supply it! Thanks for the help in advance.

SolidworksApi/macros