Open Level One, Two and Three

Questions and mods for SeedCode's new hierarchy template
PostPosted: Wed May 18, 2011 10:01 am
The existing scripts allow you to open the top level, or to open all. How should I go about opening Levels One, Two and Three but not Four and Five? Thoughts or suggestions would be greatly appreciated.
SeedCode Staff
SeedCode Staff
Posts: 639
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Wed May 18, 2011 2:31 pm
Hi Steve,

The script
Build Hierarchy Level 1

calls the script

Build Hierarchy Level 2 { Open All }

which calls

Build Hierarchy Level 3 { Open All } etc.

You could create a new script based on Open All and have it set a global variable. You could then have the script "Build Hierarchy Level 3 { Open All }" check that variable before deciding to run "Build Hierarchy Level 4 { Open All }"

Let me know if that helps,
-Jason
PostPosted: Wed Jun 08, 2011 10:07 am
Thanks your suggestion does work. However, I found that you have to be careful where you put where you put the script step that determines whether to open the next level. Otherwise the hierarchy will behave in undesirable ways.

Place your script step (eg., If[GlobalVariables::OpentoLevelThree = "Yes" ...

immediately prior to the existing script step:

If[//Are we opening all regardless... Case ( $$Hy_OpenAll = "Yes" or ......
SeedCode Staff
SeedCode Staff
Posts: 639
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Wed Jun 08, 2011 10:28 am
That makes sense Steve. Thanks for the follow-up here.

Return to SeedCode Hierarchy

Who is online

Users browsing this forum: No registered users and 1 guest

cron