Add DxfTool

This commit is contained in:
Sergey Chebotar 2023-04-07 08:10:28 +03:00
parent c638085ac7
commit 56a32cd567

View File

@ -0,0 +1,19 @@
#if !NET472
using System.Runtime.Versioning;
#endif
namespace RhSolutions.Tools;
#if !NET472
[SupportedOSPlatform("windows")]
#endif
internal class DxfTool : ToolBase
{
public override void Execute()
{
Application app = RhSolutionsAddIn.Excel.Application;
Worksheet worksheet = app.ActiveWorkbook.ActiveSheet;
var products = _reader.ReadProducts(new[] { worksheet });
_writer.WriteProducts(products);
}
}