21 lines
587 B
C#
21 lines
587 B
C#
|
||
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]}";
|
||
}
|
||
}
|
||
}
|