Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: sandeep bhat on May 15, 2014, 08:24:54 pm
-
Hi,
I want to store a static string(say template path) in Enterprise architect. I know there many ways to do this. but i want to know which is the best and simplest way to do it. Also does Enterprise Architect support storing user defined strings globally?
-
What string? For what purpose?
q.
-
Are you trying to associate a string value to an element? if so tagged values are a good option.
Whilst, I'm not sure what would a global variable mean in a model, you can consider using artifacts or notes,
If you are after setting paths to be known for all your files, consider using Local Paths,
If you can elaborate a lil more on what exactly you are trying to achieve with a static string value, it may help ppl give suggestions
-
Any idea how can i access it programatically?
-
If you don't answer my question above I can't answer yours.
q.
-
Sorry. my bad. ok here's the situation. I have an XML with a path to an icon, path to a default directory where my program exports few files. now i want to get rid of this xml file. Hence want to store it in local paths. I have written an addin in python to enterprise architect. so in the python code i want to access these local paths. so any idea how to do that?
-
Makes the answer easy :-) Look into %appdata%\Sparx Systems\EA\paths.txt
q.
-
Thanks a lot :)