Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
Try using GetEnvironmentVariable method.
-
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,
-
we do it by parsing
System.Environment.GetEnvironmentVariable("USERPROFILE") + "\\Applications Data \\Sparx Systems\\EA\\paths.txt";
where these settings are stored.