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(); + } +}