示例#1
0
		// Token: 0x06000271 RID: 625 RVA: 0x0000FF44 File Offset: 0x0000E144
		public void writeToUnitechnik(TextWriter writer, int ironNumber)
		{
			ItDebug.assert(this.status == WireItem.Status.RelativeToSteelmat, "Can't write wire items before their coordinates are transformed to be relative to steelmats origin");
			writer.Write(CNCDataBase.paddedInt3(ironNumber) + " ");
			writer.Write("000 ");
			writer.Write(CNCDataBase.paddedInt(this.ReinforcementType, 1, false) + " ");
			writer.Write(this.SteelQuality + " ");
			writer.Write(CNCDataBase.paddedInt(this.NumberOfIrons, 5, false) + " ");
			writer.Write(CNCDataBase.toMMString3(this.WireDiameter) + " ");
			writer.Write(CNCDataBase.toMMString5(this.Length, false) + " ");
			writer.Write(CNCDataBase.toSignedMMString5(this.StartPoint.x) + " ");
			writer.Write(CNCDataBase.toSignedMMString5(this.StartPoint.y) + " ");
			writer.Write(CNCDataBase.toSignedMMString5((double)this.Pitch) + " ");
			writer.Write(CNCDataBase.toMMString((double)this.Angle, 3, true) + " ");
			writer.Write(CNCDataBase.padString(this.ArticleNumber, 10) + " ");
			writer.Write(this.AutomaticProduction + writer.NewLine);
			writer.Write(CNCDataBase.paddedInt3(this.SpacerType) + " ");
			writer.Write("000 ");
			writer.Write("000 ");
			writer.Write(CNCDataBase.toMMString5((double)this.SpacerStartPoint, false) + " ");
			writer.Write(CNCDataBase.toMMString5((double)this.SpacerPitch, false) + " ");
			writer.Write(CNCDataBase.toMMString5(this.StartPoint.z, false) + " ");
			writer.Write(this.AdditionalStore + writer.NewLine);
		}
示例#2
0
		// Token: 0x06000272 RID: 626 RVA: 0x0001017D File Offset: 0x0000E37D
		public static void writeHeaderToUnitechnik(TextWriter writer, int version, int numberOfIronSets)
		{
			writer.WriteLine("RODSTOCK");
			writer.WriteLine(CNCDataBase.paddedInt(version, 3, false));
			writer.WriteLine(CNCDataBase.paddedInt3(numberOfIronSets));
		}
示例#3
0
        // Token: 0x06000014 RID: 20 RVA: 0x00002C44 File Offset: 0x00000E44
        public static string toMMString(double value, int digits, bool sign = false)
        {
            int value2 = CNCDataBase.convertToMM(value);

            return(CNCDataBase.paddedInt(value2, digits, sign));
        }
示例#4
0
 // Token: 0x06000013 RID: 19 RVA: 0x00002C28 File Offset: 0x00000E28
 public static string paddedInt3(int value)
 {
     return(CNCDataBase.paddedInt(value, 3, false));
 }