Pinnacle : Store / Root.Store

Description

  • A “Store” is temporary object automatically created by Pinnacle to hold variables.
  • It is created every time a plan is opened and deleted whenever a plan is closed.
  • Three types of variables can be held in a store – float, string and list.
  • Store.xxxxx is different than Root.Store.xxxxx.
    • Variables remain in Root.Store even when a plan is closed.

Store Objects

Float

String

List

Create a Store

Store.At.TempStore = StringKeyDict {};

Example

insert the code here

Root.Store Description

  • Root.Store.xxxx is very similar to Store.xxxx, however, user-defined variables saved in Root.Store are persistent even when the plan is closed.
    • The variable is written to the plan.Pinnacle file. [2]

Example

Root.Store.StringAt.test = "This is a test.";
Bibliography
1. Scripting on the Pinnacle Treatment Planning System. Geoghegan, S. https://tpswiki.com/wp-content/uploads/2022/01/Scripting_on_the_Pinnacle_TPS.pdf