T O P I C R E V I E W |
alex_eagle |
Posted - 10/23/2002 : 06:46:10 AM 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.
Thanx
|
1 L A T E S T R E P L I E S (Newest First) |
CStorey |
Posted - 10/23/2002 : 10:58:26 AM Hi Alex,
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(""); } //----------------------------------------------------------
Hope this helps, Craig
Craig Storey Origin WebRing Member - http://g.webring.com/hub?ring=originwebring |
|
|