Improve running time of scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
