
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am quite new in programming with iLogic. I have found a lot usefull help on the internet already which brought me quite far in building some nice rules. I want to set a variable which i can use even if Inventor is restarted. I found something like this:
Dim StorePath As String = Nothing
System.Environment.SetEnvironmentVariable("Test","ABCD")
StorePath = System.Environment.GetEnvironmentVariable("Test")
MsgBox(StorePath)
Is the System.Environment.SetEnvironmentVariable the same as the variable i can find at: Computer -> Properties -> Advanced System Settings -> Advanced -> Environment Variables -> System Variables.
When I run the code above I can see the "ABCD" in the messagebox but can't find the variable in the Windows System Variables. Can someone explain how it works?
Solved! Go to Solution.