Author |
Topic  |
|
corei5
18 Posts |
Posted - 02/05/2019 : 1:59:06 PM
|
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2018b b9.5.5.409 Operating System: Win 10 64-bit
Hello,
I'm trying to delete a tree with project scope but I'm not having any luck with the following command:
delete -rat myTree;
What am I doing wrong?
Thanks! |
|
cpyang
USA
1406 Posts |
Posted - 02/05/2019 : 4:21:54 PM
|
Did you check the scope of variables from
Script Window->Tools->Variables
dialog?
CP
|
 |
|
corei5
18 Posts |
Posted - 02/05/2019 : 5:54:11 PM
|
Yes, the dialog allows the project tree to be deleted, but I would like an automated method to do it within my Labtalk script. |
 |
|
cpyang
USA
1406 Posts |
Posted - 02/05/2019 : 6:49:32 PM
|
How did you create a project tree variable? Usually they will be declared and so will be session based and del -rat will work.
CP
|
 |
|
corei5
18 Posts |
Posted - 02/05/2019 : 8:06:31 PM
|
This was the only way I was able to get my tree from the Origin C space to Labtalk based on input from Chris D:
https://my.originlab.com/forum/topic.asp?TOPIC_ID=45476
Hence, now I have a tree variable with project scope in Labtalk. If there's some other way to make this tree with session scope, I'm all in ;)
Thanks |
Edited by - corei5 on 02/05/2019 8:07:20 PM |
 |
|
cpyang
USA
1406 Posts |
Posted - 02/05/2019 : 9:36:41 PM
|
Looks like we need to improve this, I added
https://originlab.jira.com/browse/ORG-19681
to allow passing Labtalk tree to Origin C.
Until we improve this, you can add another OC function to delete that named tree from project, see
https://www.originlab.com/doc/OriginC/ref/Project-DeleteTree
We are in the process of beta testing 2019b, so if you are interested, you can contact support to get a beta version to try it out. We are also adding XML import with the new Data Connector framework, so you may want to check that out with your XML file.
CP
|
 |
|
|
Topic  |
|