コード例 #1
0
        public static void Generate(List <LinearBearingEntry> entries)
        {
            var output = new StringBuilder();

            GenerationCommon.AppendHeader(output, new List <string> {
                "units.scad"
            });

            GenerationCommon.GenerateScadLib("LinearBearing", entries, v => v.Model, output);

            File.WriteAllText("bearing-linear-data.scad", output.ToString());
        }
コード例 #2
0
        public static void Generate(List <INutEntry> nuts)
        {
            var output = new StringBuilder();

            GenerationCommon.AppendHeader(output, new List <string> {
                "units.scad", "thread-data.scad"
            });

            GenerationCommon.GenerateScadLib("Nut", nuts, v => v.Thread.KeySimple.ToString(), output);

            File.WriteAllText("nut-data.scad", output.ToString());
        }
コード例 #3
0
        public static void Generate(List <ThreadEntry> entries)
        {
            var output = new StringBuilder();

            GenerationCommon.AppendHeader(output, new List <string> {
                "units.scad"
            });

            GenerationCommon.GenerateScadLib("Thread", entries, v => v.KeySimple, output);

            File.WriteAllText("thread-data.scad", output.ToString());
        }