The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Delete a tree with project scope
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

corei5

18 Posts

Posted - 02/05/2019 :  1:59:06 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Did you check the scope of variables from

Script Window->Tools->Variables

dialog?

CP
Go to Top of Page

corei5

18 Posts

Posted - 02/05/2019 :  5:54:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, the dialog allows the project tree to be deleted, but I would like an automated method to do it within my Labtalk script.
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 02/05/2019 :  6:49:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

corei5

18 Posts

Posted - 02/05/2019 :  8:06:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 02/05/2019 :  9:36:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000