Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAM.getMachiningTime

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
sukamirko
255 Views, 2 Replies

CAM.getMachiningTime

Hi 

I have a bug with script when I call         cam_var.getMachiningTime(all_stuff).machiningTime

I got a very strange result .

Example :

If I call standard machining time in UI for a setup I got 0:02:16

the same call via script with same machine  settings also I converted mm/min to cm/s I got 58 seconds

If I call standard machining time in UI for operation(0) I got 0:00:11

same call via script with same machine settings I got 5 seconds

if I call operation one by one with a script I got for all machining time 5 seconds 

With UI Operations one by one I got  0:00:11

                                                                  0:00:20

                                                                  0:00:21

                                                                  0:00:56 etc...

Something is strange 🙂

2 REPLIES 2
Message 2 of 3
BrianEkins
in reply to: sukamirko

I just ran a little test with a file of mine and am getting the same results as I see in the UI.  One thing that isn't clear from the documentation and is something I had to fix from my initial test is the Feed scale percentage.  What works is a value between 0 and 1.  1 is the same as 100%.  You said you already did it, but I did have to convert the rapid speed to centimeters/sec.  Once I had those two things correct, the numbers I got from the API match what I see in the UI.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 3
sukamirko
in reply to: BrianEkins

Thanks for your help

This is where is my code wrong feed scale is 0-1 

I did not even think that this is a problem Thank you

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report