In this chapter you'll find answers to frequently asked questions to the code generator.
Troubleshooting
Something's not working with Embedded Engineer? Here are a few things to consider...
Problem | Solution |
---|---|
The Generate Code menu entry is disabled or Generation Error: | Check if you have a package selected in the Project Browser / Containment Tree Check if the package: has the Stereotype LL Embedded set Check if the selected language is enable in the Model Settings. |
No code/file was generated for one of my classes/packges | Check if the class/package (or one of it's parents) has the no code generation stereotype set. Check if the class/package (or one of it's parents) has the NoCodeGen Tagged Value set to "True". |
I can't find an Embedded Engineer Stereotype/Tagged Value | Enterprise Architect: Check if the LieberLieber Embedded Engineer MDG Technology is enabled Magic Draw: Check if the Embedded Engineer Profile is used in your model. |
Generation Error: | You are generating code for State Machines with Signals. See: Signals |
The generated code is missing one of the following classes, structs, enums:
| The generated State Machine requires a structure definition: Structure Definitions Starting from scratch with Enterprise Architect |
Attribute, Operation or other typed elements have characters:
in the generated code. | This is due to the fact that Embedded Engineer only uses the "Normalized Name" of an element. Only exeption from this rule are the Primites. |
Since Enterprise Architect 15 I get the error that: Found multiple 'GenSrcDir' Tagged Values in '[PackageName]' please consolidate! or Found multiple 'GenerationLanguage' Tagged Values in '[PackageName]' please consolidate! | Enterprise Architect 15 tries to closer adhere to the UML Standard and will now show Profile specific Tagged Values in the Properties tab: Only non Tagged Values not specified in Profiles will be displayed in the Tags tab: (see otherwise empty Tags list) To find and consolidate these Tagged Values open the Element Properties dialog for the Package You will find two Tabs on the right hand bottom side LieberLieber Embedded Engineer and LL Embedded. Select the second/old entry LL Embedded and delete the old GenSrcDir and the GenerationLanguage Tagged Values. |