piaofcu

Can NETHook get an operation's cycle time?

Recommended Posts

Hi,

   I want to get some operation's parameter.  “NETHook” can get many parameter simple, like operation type、tool information... but some parameter i can't find, like cycle time,XY /Z stock to leave. (like "setup sheet report" )

   How can  i get the operation's cycle time?  (X9)

  Thank you.

Share this post


Link to post
Share on other sites

Thanks very much!  I will try it later if we upgrade to 2020.

Share this post


Link to post
Share on other sites
On 6/10/2019 at 8:34 PM, Roger Martin from CNC Software said:

In the NET-Hook API  for Mastercam 2020 there these CalcCycleTime methods -

Operation.CalcCycleTime

OperationsManager.CalcCycleTime

There is another question.

If the toolpath is created in incremental mode (contour), then will get  "linking.DepthIncremental"  - True

Is there any way to calculate the ABS value? (incremental to absolute)

 

 

 

 

Share this post


Link to post
Share on other sites
On 6/5/2019 at 8:28 PM, piaofcu said:

How can  i get the operation's cycle time?  (X9)

use back plot and look for more info... the drop down.

Share this post


Link to post
Share on other sites
3 hours ago, piaofcu said:

If the toolpath is created in incremental mode (contour), then will get  "linking.DepthIncremental"  - True

Is there any way to calculate the ABS value? (incremental to absolute)

The value you get from a specific property in the LinkingParams of an operation,
is just the "value". It is not an incremental/absolute value, it's just a "value"
The true/false setting of the DepthIncremental (in the case of Depth) tells the system how to "look at" the (Depth) value.
If "linking.DepthIncremental"  = True
Then it is incremental "from somewhere else", such as Top Of Stock.
Experiment with a simple 2D-Contour path, changing just the DepthIncremental and see what the Depth value is in each case.

Share this post


Link to post
Share on other sites
9 hours ago, Seedy steve said:

use back plot and look for more info... the drop down.

Thank you for replying, I want to get this parameter in NEThook, but I did not found information about “back plot”  in NEThook.

Share this post


Link to post
Share on other sites
6 hours ago, Roger Martin from CNC Software said:

The value you get from a specific property in the LinkingParams of an operation,
is just the "value". It is not an incremental/absolute value, it's just a "value"
The true/false setting of the DepthIncremental (in the case of Depth) tells the system how to "look at" the (Depth) value.
If "linking.DepthIncremental"  = True
Then it is incremental "from somewhere else", such as Top Of Stock.
Experiment with a simple 2D-Contour path, changing just the DepthIncremental and see what the Depth value is in each case.

I think maybe I didn't express it clearly.

There is a 2D-Contour path: Only select one Chain , Z coordinate is -5.0  (absolute value) .  

 The Contour path setting :   depth value is -4.0 , Incremental mode ---> Then the absolute value of the cut depth is -9.0

In VS, get information about this operation: "linking.DepthIncremental" = True, "linking.Depth"="-5."

Now, if I want to get the abs value of this operation (-9.0),  Is there any way?

I thought about calculating the depth of the entity + Incremental depth  value,But it seems not easy to achieve.

 
 

 

 

 

 

Share this post


Link to post
Share on other sites
10 hours ago, piaofcu said:

 “back plot”  in NEThook.

back plot is in mastercam idk about net hook. toolpath manager, select all tool paths, find backplot icon ... open drop down.

Share this post


Link to post
Share on other sites
Posted (edited)
18 hours ago, piaofcu said:

Now, if I want to get the abs value of this operation (-9.0),  Is there any way?

Not with doing the calculation yourself.  There are not  separate incremental and absolute values stored in the operation's data.

Edited by Roger Martin from CNC Software

Share this post


Link to post
Share on other sites
4 hours ago, Roger Martin from CNC Software said:

Not with doing the calculation yourself.  There are not  separate incremental and absolute values stored in the operation's data.

Okay, I understand. 

I try "Operation.GetMinimumZ" Method  gets the minimum Z .
The document is described as such: Gets the minimum Z coordinate (from the binary NCI) ...

No matter whether I save NCI file first or not, I always get the minimum value allowed in a Double.
Or "the binary NCI" is not the way to save NCI? 

 

Share this post


Link to post
Share on other sites
33 minutes ago, Roger Martin from CNC Software said:

And unfortunately, I see that the GetMaxAndMinZ method was broken until Mastercam 2019.

This is really a bad news.


By the way,In Visual Studio breakpoint mode, I can see a lot of operation member, As shown “PIC-1"

1.thumb.png.0ce5a78895df583071b230dbc6719ff2.png

Can I access them?  If i access it directly, the error "Not operation member" is displayed. "PIC-2" 

2.png.e66902d7171829ee7c2f76f47643bb6b.png

Share this post


Link to post
Share on other sites

Roger,

Thank you very much for your patience.

About the previous question, I found a solution myself.  

I will come back to ask if there are other problems.

Thanks again!

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