Add DxfTool
This commit is contained in:
parent
c638085ac7
commit
56a32cd567
19
RhSolutions.AddIn/Tools/DxfTool.cs
Normal file
19
RhSolutions.AddIn/Tools/DxfTool.cs
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user