Hi,
Here is my suggestion:
- Copy the .pvz file to .zip and extract it to find the .pvi file names inside of it.
- Each .pvi name will represent one your 3 sequence. Write down the file names.
- On Studio, click and edit the <<viewname>>.js file
Add the following JavaScript code:
$scope.FirstSequence = function() {
$scope.view.wdg['model-1']['sequence'] = 'l-Creo%203D%20-%20Figure%201.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
};
$scope.SecondSequence = function() {
$scope.view.wdg['model-1']['sequence'] = 'l-Creo%203D%20-%20Figure%202.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
};
$scope.ThirdSequence = function() {
$scope.view.wdg['model-1']['sequence'] = 'l-Creo%203D%20-%20Figure%203.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
};
- Replace 'mode-1' with the name of your model
- Replace the .pvi files names with your file names (initial steps). Spaces have to be replaced with %20
- Save the JavaScript file
- Go to the First Button and find "Click" under EVENTS
- Click on the JS in front of the "Click" event and add the following:
FirstSequence();
Best of luck,
Ricardo