Link function to a specific step from Illustrate sequence
I want to link a case inside a switch function to a step created in Creo Illustrate.
What's the javascript to achieve this?
I want to link a case inside a switch function to a step created in Creo Illustrate.
What's the javascript to achieve this?
I think we have a similar issue as mention in the posts:
"Model Item colors are not showing up in View" and "Facing problem while switching one model to another model"
OK not the same appearance of the issue but the same reasons that the issue occurs and same solution
-problem is that the sequence will override the current status
We can try to unset the sequence:
$scope.setWidgetProp('model-1','sequence', undefined);
$scope.$applyAsync();
or try this:
...
tml3dRenderer.setProperties('model-1-/', { decal:false, hidden:false});
$scope.setWidgetProp('model-1','sequence', undefined);
$scope.$applyAsync();
...
It needs to be tested which code will lead to the best results.
Additionally you can try to see if the force hide will override the sequence settings
something like this:
//model widget 'model-1'
$timeout(function () {
//set the forceHiden propery to true - only as additional option
$scope.setWidgetProp('model-1', 'forceHidden', true);
//or the same as calling this line below
//$scope.view.wdg['model-1']['forceHidden'] = true;
// set model to not visible
$scope.$applyAsync(()=>{$scope.setWidgetProp('model-1', 'visbile', false); });
$scope.setWidgetProp('model-1', 'forceHidden', false);
},50);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.