21 lines
415 B
C#
21 lines
415 B
C#
|
using RhSolutions.AddIn;
|
|||
|
#if !NET472
|
|||
|
using System.Runtime.Versioning;
|
|||
|
#endif
|
|||
|
|
|||
|
namespace RhSolutions.Tools;
|
|||
|
|
|||
|
#if !NET472
|
|||
|
[SupportedOSPlatform("windows")]
|
|||
|
#endif
|
|||
|
internal class ExportTool : ToolBase
|
|||
|
{
|
|||
|
public override void Execute()
|
|||
|
{
|
|||
|
Application app = RhSolutionsAddIn.Excel.Application;
|
|||
|
var products = _reader.ReadProducts(app.Selection);
|
|||
|
_writer.WriteProducts(products);
|
|||
|
}
|
|||
|
}
|
|||
|
|