Evaluation like holeTable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hy, i am quiet new in inventor API.
In a part or assembly i want to find all holes. i can access all the holeFeatures, but if the user has copied or mirrored the feature, the hole itself is not in the list
i have found this code
...
Try
Dim oDoc As PartDocument
oDoc = _invApp.ActiveDocument
Dim oDef As PartComponentDefinition
oDef = oDoc.ComponentDefinition
Dim lHoleFeatureCount As Long
lHoleFeatureCount = oDef.Features.HoleFeatures.Count
Dim lHoleCount As Long
lHoleCount = 0
Dim oHoleFeature As HoleFeature
For Each oHoleFeature In oDef.Features.HoleFeatures
lHoleCount = lHoleCount + oHoleFeature.HoleCenterPoints.Count
Next
MsgBox("There are " & lHoleFeatureCount & " hole features and " & _
lHoleCount & " holes in the part.")
Catch ex As Exception
showCatchMessage("Irgendwas ging schief!", ex.Message)
End Try
...
In a drawing i can place a holeTable with all the holes inside.
What is the right access to reach also those holes, which do not come directly from the HoleFeature.
Thanks for any kind of help