Sushant Singh

Drilling Hole Counts & angle between them

Recommended Posts


kindly help me. To detect the number hole to selected in drilling  & angle between the hole.

Is there any parameter or std. variable for no. of hole & Angle between them

row_holes : 1
fmt "T" 4 row_holes
      if yinc,
        *row_holes e$
        pfxout pfyout
        row_holes = 1
        row_holes = row_holes + 1



Share this post

Link to post
Share on other sites

The number of entities in an operation is stored in parameter 15083.


Are you talking about the angle between holes in 3D space or the XY plane?

For 3D space you'll need to determine the vector of a hole, then use the below formula to determine the angle.



If you want the angle between holes in the XY plane atan2 should work. 

Share this post

Link to post
Share on other sites

you can use the dot3 MP function.

result = dot3(a,b)

where a and b are the first variable of two different unitized 3D vectors. In this case you will want to use the tool vectors of the two drill points you want to measure in between.

since the vectors are unitized, the denominator of the formula above will collapse to 1.

Thus the angle between would be the cosine of result.

  • Like 2

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us