From 264e8264be48f84fef119df6060416cfb0098fbc Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 10 Apr 2026 12:25:04 -0400 Subject: [PATCH] feat: add CadImportOptions for CadImporter service --- OpenNest.IO/CadImportOptions.cs | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 OpenNest.IO/CadImportOptions.cs diff --git a/OpenNest.IO/CadImportOptions.cs b/OpenNest.IO/CadImportOptions.cs new file mode 100644 index 0000000..48e2a58 --- /dev/null +++ b/OpenNest.IO/CadImportOptions.cs @@ -0,0 +1,39 @@ +namespace OpenNest.IO +{ + /// + /// Options controlling how loads a CAD file + /// and builds a . + /// + public class CadImportOptions + { + /// + /// Detector name to use for bend detection. Null = auto-detect. + /// + public string BendDetectorName { get; set; } + + /// + /// When false, skips bend detection entirely. Default true. + /// + public bool DetectBends { get; set; } = true; + + /// + /// Override the drawing name. Null = filename without extension. + /// + public string Name { get; set; } + + /// + /// Required quantity on the produced drawing. Default 1. + /// + public int Quantity { get; set; } = 1; + + /// + /// Customer name on the produced drawing. Default null. + /// + public string Customer { get; set; } + + /// + /// Returns a default options instance. + /// + public static CadImportOptions Default => new CadImportOptions(); + } +}