Access local paths and directories in enterprise architect addin

465 views Asked by At

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

1

There are 1 answers

0
user3165438 On

Access the paths.txt file in the %appdata% folder:

string appDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); string localPathsFilePath= System.IO.Path.Combine(appDataFolder, @"Sparx Systems\EA\paths.txt");