How to tell if a structure is selected?

Jan 25 at 5:32 PM
Edited Jan 25 at 5:55 PM
There is one checkbox in front of each structure, and may only some of them are checked. In my script code how to get the information about which structure(s) is selected? Thank you very much.
Jan 26 at 1:44 PM
It seems unable to get the selected structures, but the structure Id of OptimizationObjective.Structure.Id can tell the structures that are planned to be optimized.
Coordinator
Jan 26 at 3:30 PM
Eclipse Scripting API does not provide methods or properties to get the selected structure.
Jan 26 at 4:16 PM
So, I guess ESAPI does not provide methods or properties to get other selected items such as course, image..., right? Thanks.
Coordinator
Jan 30 at 9:10 AM
The ScriptContext class gives you access to the active loaded information for the patient. Here are a few examples: ScriptContext.Patient (loaded patient), ScriptContext.Course (active course), ScriptContext.PlanSetup (active plan). ESAPI doesn't give you access to what is selected via mouse on the screen, but it does give you acccess to the loaded / active information.
Marked as answer by kroy on 1/30/2017 at 4:57 AM