Page 1 of 1

Question regarding automated worklist import

Posted: Mon Jan 28, 2013 5:50 pm
by fseipel
Hi,

I upgraded ChemStation software; I can now import worklists to front OR rear injector, however, I want to automate worklist import. I read XML guide, but there does not appear to be a means to specify whether a worklist is to be imported into front or rear worklist, e.g. Val=XML_ImportWorklist("C:\Users\Samsung_AMS_Laptop\Documents\Worklists\Rear Worklist Mon 11-19-12 8.36 AM.xml") imports to front worklist? How do I specify front or rear?

Also, I'd like to use menudelete to delete the import functions I am not using from menus; it works fine for commands that don't end in ellipsis but I can't see to figure out how to type the ellipsis in so that it works? ... = ellipsis

Thanks,

Frank

Re: Question regarding automated worklist import

Posted: Thu Jan 31, 2013 1:25 am
by fseipel
I was able to resolve my own problem.

ImportWorklist's parameters aren't fully documented in XML connectivity guide, but are listed on the Chemstation, so you can do front & rear sequences separately in two macro commands:

VAL=XML_ImportWorklist("C:\Users\Samsung_AMS_Laptop\Documents\Worklists\Rear
Worklist Mon 11-19-12 8.36 AM.xml",,,,,,"SeqTable2")
VAL=XML_ImportWorklist("C:\Users\Samsung_AMS_Laptop\Documents\Worklists\Front
Worklist Fri 10-19-12 11.55 AM.xml",,,,,,"SeqTable1")
print "Front and Rear worklists imported."

I then call this by using addmenu -- my first attempt at macro programming but
it does work.

I also figured out why I couldn't delete -- I needed to include &letter in front of shortcuts, e.g.

Menudelete "&Sequence","Import Sequence Template (&Front)..."
Menudelete "&Sequence","Import Sequence Template (&Back)..."