I am trying to detect which dimensions are attached to the cg symbol on my drawing. I am using the code from this example. I had to replace GetAttachedEntityTypes2 with GetAttachedEntityTypes because it would not run.
When selecting the basic dimension GetAttachedEntityTypes returns an array with only one value. When selecting the ordinate I get the expected two values. My solution is to check if swSelectType_e = 41 or UBound(vAttEntTypeArr) = 0. Could there be another situation where UBound(vAttEntTypeArr) = 0 as long as I guarantee that swAnn.getType is swAnnotationType_e.swDisplayDimension?