Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Anonymous

I think leaf occurrences will include occurrences in your sub assemblies as well. I think you want something like AssemblyDocument.ComponentDefinition.Occurrences.Count for just the occurrences in your top assembly. If you are trying to check for sketches in the occurrences in sub assemblies as well, you will probably need a different approach.