JS function failed to load pvi
- April 15, 2019
- 1 reply
- 2078 views
Hello,
I am trying to use the following code to set a sequence when a model is clicked on, however the .pvi fails to load each time:
var seq_list =["Exhaust-filters","EXPLODE-ALL","Figure 1","Raise-Pump"];
$scope.setSequence = function(val)
{ $scope.setWidgetProp('pump', 'sequence', "app\resources\Uploaded\SV300B_High\l-Creo 3D - "+seq_list[val-1]+".pvi");
/*"app/resources/Uploaded/SV300B_High/I-Creo 3D - "+seq_list[val-1]+".pvi");*/
$scope.$applyAsync();
console.log(val-1);
};
For each model I have a different JS command (i.e. setSequence(1); setSequence(2); setSequence(3) etc.)
The error I am getting is "pump failed to load pvi [insert pvi here]" each time I click on a model (please see attached JPG)
Any insight or ideas would be really appreciated!
Thank you,
Wes
