Export objects from selection tool.
Have a look at the selection example on this page, to see how to use the selection tool.
If you need custom event responses, read more detailed information in the referenced API documentation:
setObjectSelectionCustomResponse API referenceTo use the function as seen in the example, you have to activate the selection tool.

Build a rectangle around all objects, you want to select.

Click on Apply Selection (Auswahl übernehmen)

To get the selected objects, you have to listen to the responses of the integration-API.
//Event listener for postEvent
window.addEventListener(
"message",
(evt) => {
if(evt.data.functionName === "getFilterObjectsMessage"){
//result from selection
const result = evt.data.detail
//implement some actions with the result
console.log(result)
[...]
}
},
false
);
[...]
// To change the Event type or window target use:
postEvent("setObjectSelectionCustomResponse",{eventName: "testEvent", target: "mySpecialTarget"} )