2023-04-06 08:29:39 +03:00
|
|
|
|
using RhSolutions.AddIn;
|
|
|
|
|
#if !NET472
|
|
|
|
|
using System.Runtime.Versioning;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
namespace RhSolutions.Tools;
|
|
|
|
|
|
|
|
|
|
#if !NET472
|
|
|
|
|
[SupportedOSPlatform("windows")]
|
|
|
|
|
#endif
|
2023-04-14 08:08:46 +03:00
|
|
|
|
internal class ExportTool : Tool
|
2023-04-06 08:29:39 +03:00
|
|
|
|
{
|
|
|
|
|
public override void Execute()
|
|
|
|
|
{
|
|
|
|
|
Application app = RhSolutionsAddIn.Excel.Application;
|
|
|
|
|
var products = _reader.ReadProducts(app.Selection);
|
|
|
|
|
_writer.WriteProducts(products);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|