Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DigitalEd on September 03, 2008, 02:34:13 am

Title: Expanded Local Path in Add-in
Post by: DigitalEd on September 03, 2008, 02:34:13 am
Hey all,
  With local paths setup correctly, how can an add-in get the expanded path that the local path setting maps to?

If I have %EA_CODE% map to c:\temp, how can I get my add-in to know that?
I'm using EA 7.0.

----- Ed
Title: Re: Expanded Local Path in Add-in
Post by: Nizam Mohamed on September 09, 2008, 08:15:52 am
Try using GetEnvironmentVariable method.
Title: Re: Expanded Local Path in Add-in
Post by: Luis J. Lobo on April 29, 2009, 08:43:57 am
The method "GetEnvironmentVariable" doesn't appear to work.

Any other idea in order to read/write the Local Paths variables via API?

That's very important for us!!!

Thks,
Title: Re: Expanded Local Path in Add-in
Post by: lubos on April 30, 2009, 07:05:05 pm
we do it by parsing

System.Environment.GetEnvironmentVariable("USERPROFILE") + "\\Applications Data \\Sparx Systems\\EA\\paths.txt";

where these settings are stored.