Recognize drawing numbers with dash symbol and letters on end.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace ExportDXF
|
||||
|
||||
public static DrawingInfo Parse(string input)
|
||||
{
|
||||
const string pattern = @"(?<jobNo>[34]\d{3})\s?(?<dwgNo>[ABEP]\d+)";
|
||||
const string pattern = @"(?<jobNo>[34]\d{3})\s?(?<dwgNo>[ABEP]\d+(-\d+|[A-Z])?)";
|
||||
|
||||
var match = Regex.Match(input, pattern);
|
||||
|
||||
|
||||
@@ -542,16 +542,7 @@ namespace ExportDXF.Forms
|
||||
|
||||
if (distinctComponents.Count() > 1)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
//foreach (var comp in distinctComponents)
|
||||
//{
|
||||
// items.Add(new Item
|
||||
// {
|
||||
// Name = itemNumber + rev++,
|
||||
// Component = comp
|
||||
// });
|
||||
//}
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user