I want to change code manually by giving data from windows form. For that, I created a text file where i can change values/words. But, how to use those lines as C# code or how to read them from .txt file?
powerMill.Execute("ACTIVATE TOOLPATH TOOLPATH_2");
powerMill.Execute("EDIT TOOLAXIS ORIENTATION ON EDIT PAR 'PolarMilling.Active' '0'");
powerMill.Execute("EDIT PAR 'OrientationVector.Type' 'direction_of_travel'");
powerMill.Execute("EDIT PAR 'OrientationVector.OffsetAngle' 90");
Here i have to change "TOOLPATH_2" and "90" value in the code itself every time i run the program.
Can any help me.