I work with an Origin project containing several sub-folders. In each folder there is layout page with the name CompXXX. When I use win -b Comp I get the layout-page of the very first folder. How can I tell Origin that it should begin its search in the active folder of the project so that the layout page in the current folder becomes active.
Unfortunately most of the Origin commands do not yet recognize different folders in Projectr Explorer. Most commands work on the active folder or all folders... look at doc -ef vs. doc -e.
Also you might find this function handy for switching between folders if you choose to automate your work.
//---------------------------------------------------------- //The following function will implement a labtalk command to switch to //a named folder, (case sensitive) // //Once you have this function compile, you can switch between your top //level folders with the command "pecd SomeFolder;" assuming that you //have such a folder. To swtich to other folders, you will nedd to //specify the full path (case sensitive) //---------------------------------------------------------- void PECD(string strFolder) { Folder root; root = Project.CurrentFolder; // assume 1st level folder string strPathName = "/"+ Project.GetName() + "/" + strFolder + "/";
if ( !root.ChangePath(strPathName) ) { printf("Error!!! Can't change path to %s\n", strPathName ); } out_str(""); } //----------------------------------------------------------