Welcome
This example will read the current document selection.
Get data from selection
Find more samples online...