3 Replies Latest reply on May 29, 2018 7:46 AM by Dave Paul

    Counting Hole Instances

    John Alexander

      I've found a bug in a program I'm working on that has to do with my method of collecting hole feature instances. I'm trying to check if all instances of hole features have been fully dimensioned (based on a very simplified constraint model). This involves collecting a list of every "instance" of a hole.

       

      My method for collecting instances is via the Feature.GetFaces2() on all features of type "WizardHoleFeature". This works for the most part but it misses holes taht were generated later in the tree as a result of linear patterns, mirrors, etc.

       

      My first instinct is to just seek those candidate pattern features in the tree, check if they include any hole features, and do the leg work to find the remaining hole features that were created as a result of said patterns. However, I noticed that the instance quantity tends to be correct on drawings using the native Hole Callout. This makes me think that there might be a ready-made method of getting the hole instance count that accounts for linear patterns and mirrors. Is anyone aware of such a thing?

       

      Thanks,

      John Alexander