0
0
RhSolutions-Api/RhSolutions.Api/Services/ThreadTPieceInternal.cs

21 lines
587 B
C#
Raw Normal View History

2023-10-08 15:19:13 +03:00
using System.Text.RegularExpressions;
namespace RhSolutions.Api.Services;
public class ThreadTPieceInternal : ThreadTPieceWall
{
protected override string ConstructName(MatchCollection diameters, Match thread)
{
Capture t = thread.Groups["Thread"].Captures.First();
if (diameters.Count == 1)
{
return $"Тройник с внутр. резьбой на боков. проходе {diameters[0]}-Rp {t}-{diameters[0]}";
}
else
{
return $"Тройник с внутр. резьбой на боков. проходе {diameters[0]}-Rp {t}-{diameters[1]}";
}
}
}