From aeec611f783b5ff09257b792f3ac2930ee2c9158 Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 23 Jun 2022 10:47:30 -0400 Subject: [PATCH] Include 5000 range in drawing numbers. --- ExportDXF/DrawingInfo.cs | 2 +- ExportDXF/Properties/DataSources/Item.datasource | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ExportDXF/Properties/DataSources/Item.datasource diff --git a/ExportDXF/DrawingInfo.cs b/ExportDXF/DrawingInfo.cs index f3aed3a..1d461be 100644 --- a/ExportDXF/DrawingInfo.cs +++ b/ExportDXF/DrawingInfo.cs @@ -4,7 +4,7 @@ namespace ExportDXF { public class DrawingInfo { - private static Regex drawingFormatRegex = new Regex(@"(?[34]\d{3}(-\d+\w{1,2})?)\s?(?[ABEP]\d+(-?(\d+[A-Z]?))?)", RegexOptions.IgnoreCase); + private static Regex drawingFormatRegex = new Regex(@"(?[345]\d{3}(-\d+\w{1,2})?)\s?(?[ABEP]\d+(-?(\d+[A-Z]?))?)", RegexOptions.IgnoreCase); public string JobNo { get; set; } diff --git a/ExportDXF/Properties/DataSources/Item.datasource b/ExportDXF/Properties/DataSources/Item.datasource new file mode 100644 index 0000000..4734dfc --- /dev/null +++ b/ExportDXF/Properties/DataSources/Item.datasource @@ -0,0 +1,10 @@ + + + + ExportDXF.Item, ExportDXF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file