- Posts: 14
- Thank you received: 0
Modelio 4.0.0 released (07 Nov 2019)
Modelio 4.0.0 has been released ( www.modelio.org/forum/4-announcements/45...-4-0-0-released.html )
[Solved]Finding out how Modelio persists it's data
Yes something like this is what I was thinking of. Would I need a full module for that or would something like that fall within the scope of macros?chm wrote: I agree, defining a module to create your diagrams would be a better (and way simpler) solution.
Awesome. Thanks for the additional information. I had already glanced through some of the API but I wasn't aware of the diagram-services section. I have already downloaded a module development tutorial pdf (moduleDevTutos.pdf) that is sitting on my drive at the moment (though where I found it I can't recall at the moment but I'm certain it was somewhere on this site).You should take a look at the developer API page for general infos about modules, and the documentation of diagram services for your diagram creation.
LOL I would imagine so yes. Though you guys provide such a surprising amount of information for developers that I hopefully won't have to be too much of a bother.I guess i'll see you on the module developement section soon.

porchrat wrote: Yes something like this is what I was thinking of. Would I need a full module for that or would something like that fall within the scope of macros?
Well, that depends on what you really intend to do.
From my point of view, Jython scripts are usually 'oneshot' operations, and best kept as simple as possible. For example, creating a diagram on a package and unmasking its sub classes in a line could be a simple script.
Modules are best for complex operations, or automated tasks. For example, navigating recursively on all your packages and layouting all sub elements in diagrams, including links and other things like setting graphical properties...
The code for diagram manipulation could fastly become quite voluminous, and i'm more confortable doing it with Java than with Jython. Both can achieve the same result, but a module is easier to maintain for me, as compilation detects a lot of basic errors i could miss in a Jython script!
chm wrote:
porchrat wrote: Yes something like this is what I was thinking of. Would I need a full module for that or would something like that fall within the scope of macros?
Well, that depends on what you really intend to do.
From my point of view, Jython scripts are usually 'oneshot' operations, and best kept as simple as possible.
Some would also recommend using Jython for prototyping since it's immediately usable in the project. So you can use it to check feasabilty or develop and test quickly some small chunks of your module. APIs are basically the same and jython is not so hard to use for a Java developper.
If your prototype works out OK, or if it starts to get too big, you can translate it into a module.
Michaƫl
Praxeme Institute
Unfortunately I have a lot of work to get through for the moment but I will at some point need to tackle this and when I do I will be sure to come to this forum for additional help and guidance.
Unless the mods feel it is important to keep this open for other contributions feel free to close it as my question has been answered.
Thanks again guys. Keep up the great work!
