09-19-2016
05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-19-2016
05:17 AM
Hi Georg,
I understand the hole is sketch based. Hence, you would need to access the X, Y, Z coordinates using the Geometry API in the for loop
So instead of
Debug.Print ("X:" & oHoleFeat.HoleCenterPoints.Item(1).X)
you could use
Debug.Print ("X:" & oHoleFeat.HoleCenterPoints.Item(2).Geometry.X)
Also, in the addHole() subroutine you could change
Call oNewObjColl.Add(oCD.Sketches(2).SketchPoints(1)) ' Existing hole centre
to use the reference sketch of the hole.
Call oNewObjColl.Add(oSK.SketchPoints(1))
Please let me know if this helps.
Regards,
Sajith

Sajith Subramanian
Autodesk Developer Network