cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Sequence selection in Hololens

Matteo_1987
16-Pearl

Sequence selection in Hololens

Hi everyone,

I'm creating an experience in Hololes.

I can't select different sequences in the same model by connecting them to panels.

 

When I create experiences for Tablet I use a javascript that selects the correct Sequence (figure) and that's fine.

It doesn't seem to work here.

Are there any other ways?

 

Here is the javascript:

 

$scope.RiempimentoSerbatoio = function() {
$scope.view.wdg['SerbatoioPulita']['sequence'] = 'l-Creo%203D%20-%20riempimento_5Fserbatoio_5Fpulita.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["SerbatoioPulita"].svc.playAll')
}, 400)
};

 

 

Matteo.

3 REPLIES 3

Hi @Matteo_1987 ,

 

One of the ways to select a sequence through JavaScript is - extract the .pvi files and upload them separately on to the project.Screenshot_9.png

 

Once uploaded, use the resource path to activate the requested sequence:

$scope.view.wdg['model-1']['sequence'] = 'app/resources/Uploaded/l-Creo 3D - ... .pvi';

Here is the sample JavaScript function for the same:

 

$scope.ChangeSequence = function(seq_name)
{
$scope.view.wdg['model-1']['sequence'] = 'app/resources/Uploaded/l-Creo 3D - ElbowMotorReplacement.pvi';

$timeout(function() {
$scope.$broadcast('app.view["Home"].wdg["model-1"].svc.playAll');
$scope.$applyAsync()
}
, 2000);
};

 

AppEvent1.JPG

You would have to write separate functions for each sequence and link them in the Application Events as shown above.

Hope this helps!

Hi ytella,

Thanks for the reply.

For the selection of the sequences I already use this javascript.

A question:

I'm using Creo Illustrate 5.1 for creating sequences.

Is this version supported by Hololens?

Matteo.

Hi @Matteo_1987 ,

 

Yes, sequences built with Creo Illustrate 5.1 should work on HoloLens.

Announcements

Top Tags