I am using an in house script to display and screen capture the DVH for each structure in a plan individually and convert to PDF, but the dose statistics for each previously selected DVH are still displayed after the script de-selects the previous structure. Thanks in advance to anyone who has seen this and can help.
Jonathan Gray, M.S., DABR
St. Jude Children's Research Hospital
What command are you using to deselect the DVH? It should be something like this, if you’re turning off the 1st ROI:
PluginManager.PlanEvalPlugin.ROIList.#"#0".Selected = 0;
Mike Kantor
--
You received this message because you are subscribed to the Google
Groups "pinnacle3-users" group.
To post to this group, send email to pinnacl...@googlegroups.com
To subscribe to this group, send email to
pinnacle3-us...@googlegroups.com
To unsubscribe from this group, send email to
pinnacle3-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pinnacle3-users?hl=en
I am using that command but in a loop. This is it exactly (below). First the loop turns everything off (if on) then selects one structure at a time to give me one DVH screen shot per structure.
PluginManager.PlanEvalPlugin.ROIList.#"#*".Selected = 0;
Thanks,
Jonathan Gray
Perhaps you need to pause execution for a bit prior to taking the screen capture, so that Pinnacle can have time to update the GUI. I assume you’re executing a shell command with SpawnCommandNoWait to do the capture. Put sleep 1; in front of the command to see what happens.
I take that back! You cant use NoWait because the loop would continue…
Here is the print function. Not sure what SpawnCommandNoWait is, but a pause in the loop might give the GUI time to update.
WindowList .WindowPrint .Create = "Print Window...";
ColorPrinterControl .ValidateSelectedPrinter = "Proceed";
WindowList .WindowPrint .Unrealize = "Proceed";
ResolveDependencies = "Proceed";
SleepSeconds = "1";
ProceedPrintWindow = "Proceed"; */
WindowList .PlanEval .Unrealize = "Close Window";
Jonathan