Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi, how could I set a parameter which is Option to activate desired Floor? thanks!
Solved! Go to Solution.
hi, how could I set a parameter which is Option to activate desired Floor? thanks!
Solved! Go to Solution.
I am not sure what exactly you mean by "activating" the floor (could be to make it visible, unlock objects on it or set the grid height to that level).
You can inspect what code is executed by the GUI buttons by "exploring" the view.
There we can find the following code for the button actions:
int floor = ...; // Floor number in list
double gridZ = ...; // Height to set grid to
treenode activedoc = activedocumentnode();
set(first(gridplane(activedoc)), gridZ);
set(viewpointz(activedoc), gridZ);
int show = 0/1; // 0 to hide, 1 to show
applicationcommand("showfloor", floor, show);
int lock = 0/1 // 0 to unlock, 1 to lock
applicationcommand("lockfloor", 1, lock);You can use those in the parameters OnSet trigger.
appreciate your answer, I will go to study it with your guidance. thank again.