Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
sajith_subramanian
in reply to: GeorgK

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