<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to bring notes written in creo illustrate while creating sequence in vuforia studio by JS. in Vuforia Studio</title>
    <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-bring-notes-written-in-creo-illustrate-while-creating/m-p/636910#M7152</link>
    <description>&lt;P&gt;How to bring notes written in creo illustrate while creating sequence in vuforia studio by Javascript.I have written saftey precautions in notes while creating steps in sequence.&amp;nbsp; I want to display it in Vuforia studio while running sequence in View app. How to do it with Javascipt?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can please anyone suggest the code for this?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 11:48:32 GMT</pubDate>
    <dc:creator>InfinityX</dc:creator>
    <dc:date>2019-11-19T11:48:32Z</dc:date>
    <item>
      <title>How to bring notes written in creo illustrate while creating sequence in vuforia studio by JS.</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-bring-notes-written-in-creo-illustrate-while-creating/m-p/636910#M7152</link>
      <description>&lt;P&gt;How to bring notes written in creo illustrate while creating sequence in vuforia studio by Javascript.I have written saftey precautions in notes while creating steps in sequence.&amp;nbsp; I want to display it in Vuforia studio while running sequence in View app. How to do it with Javascipt?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can please anyone suggest the code for this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 11:48:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-bring-notes-written-in-creo-illustrate-while-creating/m-p/636910#M7152</guid>
      <dc:creator>InfinityX</dc:creator>
      <dc:date>2019-11-19T11:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to bring notes written in creo illustrate while creating sequence in vuforia studio by JS.</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-bring-notes-written-in-creo-illustrate-while-creating/m-p/636952#M7154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/297687"&gt;@InfinityX&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I know , in generally 2d annotaitons are not available/ in Studio newStep event .&lt;/P&gt;
&lt;P&gt;But for the step started and stepfinished events- I think there are some parameters which we can use / and the note form Creo /In UI in the parameter tab is also comming&lt;/P&gt;
&lt;P&gt;You can test with some code like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var _stepDescription; // private member
  Object.defineProperty($scope,"stepDescription",{
    get: function() { return _stepDescription; },
    set: function(value) { _stepDescription = value; 
                            if(_stepDescription) $scope.setWidgetProp("3DLabel-1", "text", _stepDescription); }
  });

$scope.$on('stepstarted', function(evt, arg1, arg2, arg3) { 
 var parsedArg3 = JSON.parse(arg3);
 console.warn(evt);
 console.warn(arg1);
 console.warn(arg2);
 console.warn(arg3);

 
  
  console.log("stepName="+parsedArg3.stepName);
  console.log("stepDescription="+parsedArg3.stepDescription);
  console.log("nextStep="+parsedArg3.nextStep);
              
  $scope.stepDescription=parsedArg3.stepDescription;
  //$scope.view.wdg['label-1']['text'] = "Event: " + evt.name + " arg3 fields, name: " + parsedArg3.stepName + " duration(ms): " + parsedArg3.duration  + " total steps: " + parsedArg3.totalSteps  + " step desc: " + parsedArg3.stepDescription ;
}); &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-19_15-07-39.gif" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/21250iC8495F6F9087B5E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-19_15-07-39.gif" alt="2019-11-19_15-07-39.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The arg3&amp;nbsp; contains the more relevant information - here e.g. :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"stepNumber":2,"stepName":"Step 2",
"stepDescription":"Notiz zu step2",
"duration":6878,
"acknowledge":false,
"acknowledgeMessage":"",
"totalSteps":5,
"nextStep":3}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example above show the usage&amp;nbsp; /arguments for &lt;STRONG&gt;&lt;EM&gt;stepstarted&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;But it should the same also for s&lt;STRONG&gt;&lt;EM&gt;tepcompleted&lt;/EM&gt;&lt;/STRONG&gt; - difference is that the one event is stated on step start and the other as the step is completed and also ,may be , there are some parameter in the arg3 different / next step ... etc , not sure/ but you can check it by simple print it to the console&amp;nbsp; with &lt;STRONG&gt;console warn&lt;/STRONG&gt;().&lt;/P&gt;
&lt;P&gt;Example for &lt;STRONG&gt;&lt;EM&gt;stepcompleted&lt;/EM&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;/////////////////////////////// 'stepcompleted'
$scope.$on('stepcompleted', function(evt, arg1, arg2, arg3) { 
 var parsedArg3 = JSON.parse(arg3);
 console.warn(arg3);
 
  
  console.log("stepcompleted stepNumber="+parsedArg3.stepNumber);
  
   if(parsedArg3.stepNumber) {
   $scope.app.params['my_current_step']=parsedArg3.stepNumber;
                              my_play_loop(parseInt(parsedArg3.stepNumber),5000);}

});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 14:23:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-bring-notes-written-in-creo-illustrate-while-creating/m-p/636952#M7154</guid>
      <dc:creator>RolandRaytchev</dc:creator>
      <dc:date>2019-11-19T14:23:05Z</dc:date>
    </item>
  </channel>
</rss>

