how to show complete model again after hiding some sub-parts
Hi,
I want to make an experience where modelItems can be hidden by tapping on them, and where I have a restore-button that shows all modelItems again.
I am using a simple js for hiding the modelItems:
$scope.Hide= function(val) {
$scope.view.wdg[val]['visible']=false;
}
This works fine, by using this call:
Hide('name-of-the-modelItem')
So far, so good.
However, for showing all models I made a modelItem of the complete model, and I called this function (almost identical to the Hide function):
$scope.Show= function(val) {
$scope.view.wdg[val]['visible']=true;
}
But... this does not work on the modelItem that I made of the complete model, only on sub-assy-modelItems.
Is this a bug, or are the visible-properties of the sub-modelItems blocking the correct display of the 'visible'-property of the total-model-modelItem??
The point is, I could call the Show-function for all sub-modelItems one by one from a new function, but that's more work, more code... and this experience will be used on a model with quite a few subassies.
Thanks,
Jaap

