T O P I C R E V I E W |
cdrozdowski111 |
Posted - 01/06/2013 : 08:53:20 AM OriginPro 9.0.0 SR1, Win7 64-bit, running in VMware Fusion 5.0.2
I added a text label to a 1 layer graph. It is named METADATA_LABEL2 and is attached to the layer frame and has substitution level 1. I added the following script to it (for testing) and set Script Run After to "none":
type -a test;
I cannot figure out how to "manually" run this script via labtalk. I have tried all of the following (with the graph active) in the command window (again, for testing) and none seems to work:
METADATA_LABEL2.Run();
Graph1!METADATA_LABEL2.Run();
GObject goMDL2 = METADATA_LABEL2; goMDL2.run();
GObject goMDL2 = "METADATA_LABEL2"; goMDL2.run();
What might I be doing incorrectly? |
1 L A T E S T R E P L I E S (Newest First) |
cdrozdowski111 |
Posted - 01/06/2013 : 6:32:51 PM Apparently, the script cannot be run via the Run() method unless it has been assigned to a Script, Run After event other than "None".
As a work-around, this appears to work:
GObject goMDL2 = "METADATA_LABEL2"; goMDL2.script = 1; goMDL2.Run(); goMDL2.script = 0;
Perhaps, this behavior can be changed in future releases. |
|
|