API: How to get operation Max Depth?

API: How to get operation Max Depth?

nicholas_wu
Contributor Contributor
647 Views
2 Replies
Message 1 of 3

API: How to get operation Max Depth?

nicholas_wu
Contributor
Contributor

hi all :

 

          how to get the operation max depth value?

 

          look pic , operation list is show each operation information. the depth value is not match (7.664mm), the Correct depth value is 42.336mm.  i use FMOperation.Depth & FMOPeration.DepthText can not get the correct value. Is there a solution to the problem? thx!

0 Likes
Accepted solutions (1)
648 Views
2 Replies
Replies (2)
Message 2 of 3

serge.quiblier
Autodesk
Autodesk
Accepted solution

Hello @nicholas_wu 

 

This is because you are confusing two values.

7.6 is really the depth of the hole, i.e the distance from the top of the "cylinder" to the bottom.

Whereas 42.... is the coordinate of the hole bottom.

Two different concepts, so two different values.

So, you may need to use the GetFeatureLocation to grab the Z value, then substract the depth value to it.

 

Regards.

 


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes
Message 3 of 3

nicholas_wu
Contributor
Contributor
Hello @serge.quiblier
    Thanks for your advice!!‌‌
I need the current toolpath(operation) max depth not the hole feature max depth! the bottom of the
hole feature to the zero position is 42, but i set the machine depth is 40, use GetFeatureLocation is not easy the calculate!
0 Likes