Plotting
Under the Covers
Getting to elements
you can use the following to get a handle on all the elements on a page. Note the layout number and page number will be specific to your plot template. Also an_element() may need to be changed to the dialog you are interested in.
app.plugin(:plotting).dialogs.an_element().component(:layout_manager).sys!slot(:layouts)[2].document.sys!slot(:pages)[1].elements
or
app.plugin(:plotting).dialogs.an_element().layout_manager.current_layout_view.document.page(1).elements
Getting Current Selection
app.plugin(:plotting).dialogs.an_element().databus.request_data(:current_document)[1].selection
page revision: 4, last edited: 01 Aug 2018 14:20





