- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a routine to test hole placements next to edges and I've found a condition in patterns this is creating a problem for me. It appears that when getting a Range Box for a pattern, that the original feature is not included in the range box even though it appears as an occurrence in the pattern. For example, I've highlighted "H1 Pattern" which is created from hole feature "H1". The pattern features in the tree show all features, including the original "H1". In this screen capture where there's two columns & rows, I do get a valid range box (represented by the two points highlighted which are the MinPoint and MaxPoint return values (inverted due to view & YZ Plane usage).
However when there's only 1 column OR 1 row, then the range box only includes the copied features and therefore provides an incorrect range box for the pattern, or at least not what I was expecting from the range box.
oFeature = oCompDef.Features.Item("H1 Pattern") oMinPoint = oFeature.RangeBox.MinPoint oMaxPoint = oFeature.RangeBox.MaxPoint
Is my understanding of range boxes incorrect here or is this a bug and not operating as expected?
If I'm off here, is there a way to get a range box to include the original feature(s)?

Solved! Go to Solution.