Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: cris on November 10, 2003, 01:29:13 am
-
Hi
Im trying to generate code, but i cant.
Im using EA 3.60, build 650.
It seems i need code generation templates, but i havent any.
I've created some classes on a diagram, i put some links, and i defined a few attributes and operations.
When i try to generate code, EA says that the .h file doesnt have a class declaration, anyway, it creates header files with 0 bytes. ???
Can anyone help me to generate code?
Thanks!
-
Hi cris
This sounds a bit unusual.
Can you confirm that you see no templates in the code template editor? Open the code template editor (Control+Shift+P), then select C++ as the language, then select the first template. You should see the contents of this template on the right.
Are you attempting to synchronize an existing code file, or generate from scratch?
I can't say exactly what the problem might be. If you can provide some more detail, such as the steps you are taking to generate that would be useful.
Regards,
Ben
-
Hi
I attempt to create code from scratch, just from the model.
I made today a new project, just a couple of classes, and a attribute on each.
When i see the template's form (using Ctrl+Shift+P), all templates are empty, no matter what languaje or what template i choose.
I tried to generate code:
I select the 2 classes, and then i click on
Project -> Source code engineering -> Batch Generate Selected elements (May+F11) (or using right click to select Code Generation).
First, it says its going to generate class1.java (java classes), but i have previously selected C++ as default code generation (in Tools -> Options -> Generation ).
Second, it generates a file of exactly 0 bytes.
should i try to reinstall EA?
Edited: After reinstalling EA 3.60, i can now see and modify thecode generation templates, and i can generate C++ code.
-
Hi cris,
Thanks for the update. By the sound of it a required dll was missing. I'm not sure how this came to be, but we'll include an error message for this scenario in future.
Glad to hear it's working now though.
Regards,
Ben