Reading the MDG technology imported to model using C# addin

General Tech Technology & Software 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

We have a model in which the MDG is imported. Now I want to read the MDG XML file to find the specific tagged value type whether it is of type combo/refguidlist. So how can we fetch the MDG technology from Addin imported to the model.

profilepic.png
manpreet 2 years ago


Not that easy. The registry is a starting point. To detect whether a MDG is enabled you can inspect

\\HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS\MDG_TECHNOLOGY_STATUS

where you find something like Archimate=0; in a semicolon separated list. In the same key location you find

"MDGTechnology PathList"

which holds a comma (!) separated list of paths where MDGs are looked after besides

%programfiles%\Sparx Systems\EA\MDGTechnologies 

Now you can combine both and traverse the paths to find the appropriate MDG files and read them with the usual file operations.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.