Hi,
In version 7.0, there is no direct support for Project Explorer from LabTalk. However, Origin C can be used to access the Project class to perform Project Explorer operations. One could then build Origin C functions which can then create new script commands that can then be used from LabTalk.
For example, if you create a new Origin C file with the following function, and then compile and link the file:
void pe_mkdir(string subfolderName)
{
Folder fld = Project.ActiveFolder();
Folder subfld = fld.AddSubfolder(subfolderName);
if( !subfld.IsValid() )
{
printf("Error!!! Can't Create new subfolder %s !\n", subfolderName);
}
}
you can then go to script window (or add line in OGS script file) such as:
pe_mkdir "subfolder name"
to add a new subfolder at current PE folder level.
If you download the 7.5 demo, you will find a file called LT_PE.c under the \OriginC\OriginLab subfolder which has many such functions that essentially add new script commands for PE access from LabTalk. You should be able to then copy over that file to 7.0 and compile it - it is compatible with 7.0 - may need latest 7.0 Service Release.
Easwar
OriginLab