Sample Chart Snipping Tool
The following explains how to use the Chart Snipping Tool within the Scope Control Integration.
In this sample the programming language C# is used.
The button for the snipping tool triggers the event
CopyToClipboard
of the class
TwinCAT.Measurement.Scope.API.Model.Chart
and provides the required parameters for further processing.
Subsequently, the static method
TwinCAT.Measurement.Reporting.Model.ReportingProject.ShowReportingProject(EVENT_PARAMATER, BACKGROUND_COLOR, SCOPE_PROJECT);
can be called with the corresponding parameters.
The snipping tool is then called and displays the chart that triggered the event in the configuration interface.
For more information on using the snipping tool, see the article Chart Snipping Tool.
For use without the toolbar button, you can configure the necessary parameters yourself.
This requires the creation of instances of the class
TwinCAT.Measurement.Scope.API.CopyClipboardStartupArgs
which must provide the respective chart, the size as rectangle, and the axis scaling as parameters.
The call is then made via the same static method as the call via the click event.