Book a Demo

Author Topic: Access local paths and directories  (Read 5954 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Access local paths and directories
« on: June 09, 2015, 11:20:35 pm »
Hi
In my addin I look at the GenPath attribute of an element.
In some projects we are using local paths and directories so that GenPath evaluates to something like
%MyROOT%\......

Is there a way in my addin to expand the %MyROOT% part of the path

THanks
Using V12

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access local paths and directories
« Reply #1 on: June 10, 2015, 01:52:54 am »
Did you ask that on SO too? See the %appdata%\...sparx...\paths.txt

q.

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Access local paths and directories
« Reply #2 on: June 10, 2015, 07:14:00 pm »
Yes I asked on SO and also sparx support
I got the same answer which was to use the paths.txt file in the %appdata% folder:
My SO answer is here
http://stackoverflow.com/questions/30734472/access-local-paths-and-directories-in-enterprise-architect-addin/30752023#30752023
Using V12