Author Topic: Storing a static string in Enterprise Architect  (Read 4962 times)

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Storing a static string in Enterprise Architect
« 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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #1 on: May 15, 2014, 08:46:45 pm »
What string? For what purpose?

q.

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #2 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

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #3 on: June 02, 2014, 11:22:39 pm »
Any idea how can i access it programatically?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #4 on: June 03, 2014, 03:27:58 am »
If you don't answer my question above I can't answer yours.

q.

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #5 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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #6 on: June 03, 2014, 06:00:07 pm »
Makes the answer easy :-) Look into %appdata%\Sparx Systems\EA\paths.txt

q.

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Storing a static string in Enterprise Architec
« Reply #7 on: June 03, 2014, 06:51:31 pm »
Thanks a lot :)