I want to set up to export only the selected objects.
But I can't found source from API.
You have to use selection
forexporting.exportFile( ExportFormat.JPG, filepath, false );// mention you path name to save the file in the place of filepath
Retrieving data ...