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
 Importing OTW templates
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blt2si

Germany
37 Posts

Posted - 04/07/2003 :  08:54:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have a problem with some labtalk script I am programing!
I am having trouble opening a template *.OTW file. I put the following in the button so it opens automatically.

%A = Map11;
win -t wks \\S345\test\Origin_files\Templates\Map11 %A;

with "wks" or with "data".
This will not open the file however if I open a plot template *.OTP file

%A = EmiZW
win -t plot \\S345\test\Origin_files\Templates\EmiZW %A;

There is no problem.

Thanks

e.kruis@un

Germany
1 Posts

Posted - 04/07/2003 :  09:20:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi blt2si,

having a look at the "win -t" description, you'll see that you have to set the system variable @WD=1 before you open the template. The reason is that Map11 already existed in your project and was then deleted (equivalent to "win -c") - but the datasets remained, so Map11 was'nt opened.
I guess, EmiZW didn't exist before, that's why it works here.

Regards

Thomas
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