Apprentice API and Un-Enabled Parts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm looping through occurrences and wishing to exclude those that are not enabled from a List but although the parts/assemblies are not enabled in my .IAM I'm looking at the API doesn't seem to recognise this.
oOcc.Excluded does trigger a response but I cant figure out if this means suppressed, visible or enabled or some hierarchical combination of these?
The code below does not trigger any response but oOcc.Excluded does - Looking at my model I think may flags visible OR not Enabled.
Can anyone explain for me please?
Dim oOcc As ComponentOccurrence
For Each oOcc In Occurrences
If oOcc.Enabled = False Then
Debug.Print(oOcc._DisplayName & " is not ENABLED.")
End if
Next