Skip to main content
1-Visitor
November 27, 2018
Question

Pause sequence playback with Acknowledge Request

  • November 27, 2018
  • 1 reply
  • 5929 views

Hello,

 

I am in development of a HoloLens experience and faced the following issue:

  • Sequence created in Creo Illustrate 4.2, displayed in HoloLens correctly,
  • I am using $scope.$on('newStep', function(evt, arg) to display sequence step information during playback.

After a step is played (using play event), the sequence is switched to the next step.

Thus the information I am displaying using newStep is automatically overwritten with the data related to the next step.

 

I am looking for a possibility to pause the sequence playback after a step is played.

In Illustrate there is a possibility to use Acknowledge to pause the playback and theres is an Acknowledge Request among the studio events, but I did not figure out how to tie those together.

 

Any ideas?

Thanks in advance!

1 reply

21-Topaz I
December 18, 2018

So far I know there is an event what we can use

The following steps

1.) in Creo Illustrate define for a step 

2018-12-18_11-49-19.jpg

then when we publish to pvz and play in Creo View the sequence we can see the Acknowledgement:

2018-12-18_11-16-15.jpg

2.) ON the HoloLense then we could use the Model Event "Acknowledge Requested"

2018-12-18_11-56-18.jpg

Where we can use some code like this :

$scope.speak = function(spokenText){ 
var msg = new SpeechSynthesisUtterance(spokenText);
window.speechSynthesis.speak(msg);
}

$scope.AcknowledgeEvent = function()
{
$scope.speak("Acknowledge occured!");
}

callback function and we  will hear the text "Acknowledge occurred.

When we are calling "playAll" service here via double tap then it will stop the sequence after the acknowledge event and we need again the call playAll to continue the sequence until the end of the sequence  or until next acknowledgement occurs.  I did not test it further but may be we can implement more  complex logic to continue or to play the current step event  again . In this case we need also to evaluate the arguments of the "stepstarted" and "stepcompleted" events

The Acknowledge message is also coming as argument in the step event. For more info you can check these posts:

:

"Display sequence step names from Creo Illustrate"

and

"Repeat current step"

 

 

18-Opal
April 9, 2019

I'm working on a similar scenario, but I'm having a specific problem, which seems to be a bug on iOS and Android. In the preview, when the sequence pauses for acknowledgement, the "newStep" event triggers, so I can get the updated label text for the next step and display it after the acknowledgement action is done. So that's all working just as I want.

Unfortunately, on iOS and Android, for a step with Acknowlegement Requested, it doesn't seem to trigger the "newStep" event when the step is done. It pauses, and I can do the acknowledgement action (button click, basically), which starts the sequence again. But, because there's no "newStep" event, I can't get the step text (step name) for the step after the acknowledgement.

Is this a known bug? Is there a workaround I could use to make sure "newStep" triggers at the end of an acknowledgement step on mobile devices, or to get the step text some other way?

18-Opal
April 10, 2019

@tmccombie , @RolandRaytchev is this a known issue?