Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Rethinking on August 24, 2021, 04:33:06 pm
-
I see that you can include Javascript libraries using a standard INC command, but I don't really understand how to.
I was wondering "Can you use standard Javascript libraries such as d3.js - in order to visualise the output of an EA simulation ?".
Is there a tutorial or a blog-post that would help point me in the right direction ?
I think the combination of EA and d3.js would be very powerful together. However, it appears that some standard Javascript functionality such as .forEach() is locked down, so I suspect that a detailed library like d3.js would struggle.
Thanks,
Rethinking
-
INC helps you include another EA script. It doesn't include external scripts.
You could however add D3.js to the local scripts folder in your program files, and it will appear as a local script in EA.
Then you can include it.
In theory it should work, but I've never tried something like that myself.
Geert
-
Thanks, Geert.
I will have a play around and report back.
P.S. I was just watching one of your YouTube videos on scripting, so thanks for the prompt reply.
Rethinking.
-
Geert (or anyone else),
I am a bit confused by the difference between behaviours, scripts and code, which presumably could each or all be written in Javascript.
Can anyone explain the difference to me simply, or point me in the right direction ?
Many thanks,
Rethinking
-
That will need to be someone else. I've never used those simulations.
Geert