Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: sandeep bhat on May 15, 2014, 08:24:54 pm

Title: Storing a static string in Enterprise Architect
Post 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?
Title: Re: Storing a static string in Enterprise Architec
Post by: qwerty on May 15, 2014, 08:46:45 pm
What string? For what purpose?

q.
Title: Re: Storing a static string in Enterprise Architec
Post by: Nizam Mohamed on May 15, 2014, 08:53:06 pm
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
Title: Re: Storing a static string in Enterprise Architec
Post by: sandeep bhat on June 02, 2014, 11:22:39 pm
Any idea how can i access it programatically?
Title: Re: Storing a static string in Enterprise Architec
Post by: qwerty on June 03, 2014, 03:27:58 am
If you don't answer my question above I can't answer yours.

q.
Title: Re: Storing a static string in Enterprise Architec
Post by: sandeep bhat on June 03, 2014, 02:41:55 pm
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?
Title: Re: Storing a static string in Enterprise Architec
Post by: qwerty on June 03, 2014, 06:00:07 pm
Makes the answer easy :-) Look into %appdata%\Sparx Systems\EA\paths.txt

q.
Title: Re: Storing a static string in Enterprise Architec
Post by: sandeep bhat on June 03, 2014, 06:51:31 pm
Thanks a lot :)