Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: KalpakD on June 03, 2021, 01:58:22 am
-
Hi,
Is there a guide for code engineering?
Or is it a part of some other guide?
regards,
-
Depends on what you take for code engineering. If you are thinking of a cycle I'd say "forget it". You can import code to get an idea and some code stubs you can manually work on. But that's all which should be done. Modelling and coding are two worlds where an architect has to build an appropriate bridge in various domains. It's all individuall work and most tricky. There's nothing off the shelf.
q.
-
Are you talking about Code Engineering within EA? If so, try starting here:
https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/model_domains/development_ide.html
The facilities are available through the Develop > Source Code ribbon panel.
-
Thanks for the link.
I am able to generate code from Class and activity connected to a operation in a class.
Could not generate code from a sequence diagram in the same project.
Any simple example for that?
-
Have a look at this.
https://sparxsystems.com/enterprise_architect_user_guide/15.2/model_domains/code_generation-interaction_.html
Does your Sequence diagram meet these requirements?
1) To be able to generate code from behavioral models, all behavioral constructs should be contained within a Class
2) For an Interaction (Sequence) diagram, the behavioral code generation engine expects the Sequence diagram and all its associated messages and interaction fragments to be encapsulated within an Interaction element
-
Thanks