hello scripters,
I am trying to make a script that will delete all objectives in an IMRT plan. I tried something like this:
CombinedObjectiveList .#"*". DestroyAllChildren = "";
but I am getting an error message (syntax). what am I doing wrong?
thanks
Bogdan Coroi, MS, DABR
Medical Physicist, CMHC
Office: 207-795-2465
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
That will certainly do it
// Name: DestroyAllIMRTObjectives
// Author: Ernst Lederer
// Date: 2009-11-06
//
// Purpose/Action: Destroys all IMRT Objectives for the current Trial
//
// Temp_variables used
// none
IF.PluginManager.InversePlanningManager.CombinedObjectiveList.HasElements.THEN
.PluginManager.InversePlanningManager.DeleteCurrentObjective = "";
IF.PluginManager.InversePlanningManager.CombinedObjectiveList.HasElements.THEN
.Script.ExecuteNow = Store.StringAt.DestroyObjectives;
// -
// end of script
// +
____________________________________
Ernst Lederer RT. (Austria), C.M.D.
Dosimetrist, Department of Medical Physics
Northeast Cancer Centre
Health Sciences North
41
Ramsey Lake Road
Sudbury, Ontario P3E
5J1
Tel: (705) 522-6237 Ext. 2158
Fax.: (705) 523-7329
e-mail: eled...@hsnsudbury.ca
Thanks Ernst..I'll give it a try
A simpler way is this:
PluginManager.InversePlanningManager.CombinedObjectiveList.ChildrenEachCurrent.#"@".IF.PluginManager.InversePlanningManager.CombinedObjectiveList.HasElements.THEN.PluginManager.InversePlanningManager.CombinedObjectiveList.#"#0".Destroy = "";
____________________________________
Ernst Lederer RT. (Austria), C.M.D.
Dosimetrist, Department of Medical Physics
Northeast Cancer Centre
Health Sciences North
41
Ramsey Lake Road
Sudbury, Ontario P3E
5J1
Tel: (705) 522-6237 Ext. 2158
Fax.: (705) 523-7329
e-mail: eled...@hsnsudbury.ca
Nick,
We received V9.8 about a month ago and are still in the testing phase. I had not tested this function yet. Now I have. Yes, the same happens here, however, there is a another way to do that. Its more lines and based on your approach.
Try:
Store.At.Stack =
ObjectList {ChildClassName = "SimpleString"; };
Store.At.Stack.CreateChildren = PluginManager.InversePlanningManager.CombinedObjectiveList.Count;
Store.At.Stack.ChildrenEachCurrent.#"@".IF.PluginManager.InversePlanningManager.CombinedObjectiveList.HasElements.THEN.PluginManager.InversePlanningManager.DeleteCurrentObjective = "";
Store.At.Stack.Destroy = "";
I have tested that and had no problems. If you encounter problems please let me know.
Ernst