Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: TxRx on December 13, 2023, 12:46:04 am

Title: Code Grammer + MDG
Post by: TxRx on December 13, 2023, 12:46:04 am
I can create a new Code Grammer and I can add the new Code Grammer to an MDG technology. The new language appears on the list of languages in the preferences dialog and all seems well except that I cannot import source code for the new language, the language never appears in the list of languages for Import Source Directory. How do I reverse engineer my new language into EA using my new Code Grammer?

Thanks.
Title: Re: Code Grammer + MDG
Post by: Geert Bellekens on December 13, 2023, 01:19:33 am
You might have either missed one of the required parts for your MDG https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/addingcodemodulesinmdgtec.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/addingcodemodulesinmdgtec.html)
Or possibly, you might have an error somewhere that prevents it from working correctly.

Unfortunately, EA won't tell you what went wrong, you'll have to figure it out yourself.
I would start by analysing an existing MDG that you know works, and then try to figure out the differences between the working sample, and yours.

Geert
Title: Re: Code Grammer + MDG
Post by: TxRx on December 14, 2023, 07:25:14 pm
Thanks for the advice, fixed it.
Title: Re: Code Grammer + MDG
Post by: Geert Bellekens on December 14, 2023, 08:02:45 pm
Thanks for the advice, fixed it.
Any chance you can share what went wrong, and what you did to fix it?

If a future user stumbles upon this topic, searching for a solution, they would be pretty dissappointed with a "I fixed it"  :)

Geert