Improve running time of scripts?

Improve running time of scripts?

benL9LDN
Explorer Explorer
1,743 Views
3 Replies
Message 1 of 4

Improve running time of scripts?

benL9LDN
Explorer
Explorer

New to Fusion 360 (long-time Eagle user), I'm attempting to use some scripts we've developed for doing LED matrices in Fusion 360.  While the scripts are actually executing just fine, they are running incredibly slowly.  It appears that the "command helper windows" are being animated even while a script is executing, and this is perhaps slowing things down significantly.  

The board script was a good bit slower than the schematic script, but both took a while.

Here is video of the script in action: https://twitter.com/BenPeoplesInd/status/1243251969990459400

It took a total of 30 minutes to run this script, which consists of 3441 commands, so took about half a second to execute each command (on average).  

Here's a few excerpts (proprietary, so I'd like to not post the whole script):

MOVE LED18 (68.0 0.0);
MOVE LED19 (72.0 0.0);
MOVE LED20 (72.0 4.0);
ROTATE R180 LED20;
MOVE LED21 (68.0 4.0);
ROTATE R180 LED21;
MOVE LED22 (64.0 4.0);
ROTATE R180 LED22;
SET WIRE_BEND 2;
WIRE 0.4 (2.9 19.35) (2.9 18.35) (6.9 18.35) (6.9 19.35);
WIRE 0.4 (5.1 20.65) (5.1 21.65) (9.1 21.65) (9.1 20.65);
WIRE 0.2 (5.1 19.35) (6.9 20.65);
SET WIRE_BEND 2;
VIA 0.2 Round (34.9 90.35) 
VIA 0.2 Round (37.1 93.65) 


In AutoCAD, there's always been a way to call the "plain command" with an underscore before the command and avoid all the UI goodness.   There doesn't seem to be a similar functionality in Fusion 360.  

Any solutions here, or do we just need to schedule a coffee break before running scripts?  

0 Likes
1,744 Views
3 Replies
Replies (3)
Message 2 of 4

jorge_garcia
Autodesk
Autodesk
Hello @benL9LDN,

I've passed this along to our developers for review. Let me know if there's anything else I can do for you.

Best Regards,
Jorge Garcia


​Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
Message 3 of 4

benL9LDN
Explorer
Explorer

Thanks Jorge!

If they want to reach out directly, I'm happy to supply complete scripts for testing.  

-- Ben

 

0 Likes
Message 4 of 4

HelenChen-AutodeskQA
Autodesk
Autodesk

Hello @benL9LDN ,

 

Hope all is well.

We just released new Fusion 360 version 2.0.8560 today which includes the fix for the issue you reported.

Could you please upgrade Fusion 360 and have a try?

Hope it works and thank you very much for reporting it to us.

 

Regards,

Helen



Helen Chen
Principle QA for AutoCAD Windows
0 Likes