<RuntimeDirectory>\System.Globalization.dll <RuntimeDirectory>\System.Linq.dll <RuntimeDirectory>\System.Windows.Forms.dll System System.Diagnostics System.Drawing System.Globalization System.IO System.Security.Cryptography System.Security.Cryptography.X509Certificates System.Text System.Windows.Forms void Main() { int x = 340; int y = 340; double step = 2 * Math.PI / 32; double angle = -Math.PI / 2.0; using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"r:\prova.jzml")) { preambolone(file); for (int k = 0; k < 32; k++) { int r = 300; double cx = Math.Cos(angle); double cy = Math.Sin(angle); angle += step; int pos_x = (int)Math.Round(x + r * cx); int pos_y = (int)Math.Round(y + r * cy); addLine(file, pos_x, pos_y, k); } postambolone(file); } } void postambolone(StreamWriter file) { file.WriteLine(@" "); } void preambolone(StreamWriter file) { file.WriteLine(@" "); } void addLine(StreamWriter file, int pos_x, int pos_y, int counter) { int dime = 20; string oscname = $"/scene5/Knob{counter+1}"; string s = $@" "; file.WriteLine(s); }