I'm trying to programmatically determine which component a BOM balloon is attached to in an assembly drawing.
So far, in VBA, I'm using iAnnotation.GetAttachedEntities3 and then iEntity.GetComponent. This works well unless the note is attached to a silhouette edge in which case I get a "Type Mismatch" when I attempt to set the result from iAnnotation.GetAttachedEntities3 to an variable defined as a SldWorks.Entity type.
With SolidWorks 2013, I actually could use iAnnotation.GetAttachedEntities2 and it would work with silhouette edges. However, now in SolidWorks 2014 that "trick" doesn't work.
So my question is if there is a different (better??) approach that I should be using.
SolidworksApi macros