<?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 About the pause function for repetitive tasks in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/989621#M13704</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to implement a repetitive tasks that opens a listed drawing in a new window and exports it in a different format. and that it can be stopped during repetitive tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Work scenario)&lt;/P&gt;
&lt;P&gt;The repetitive tasks is implemented with a "for" loop, and the task of opening and exporting the drawing is temporarily implemented with the "EmptyWindowCreateAndDelete" function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use a window procedure to respond to the user to stop during the task. When the window procedure window is closed, the loop stops.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This function is effective in loops. The TEST2 function works only with the loop without EmptyWindowCreateAndDelete, and when the user closes the window, the loop seems to stop in the middle.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6366172441112w200h110r935" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6366172441112" data-account="6058022026001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022026001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6366172441112w200h110r935');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://www.ptcusercommunity.com/t5/video/gallerypage/video-id/6366172441112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;However, when used with a function that creates a new window like EmptyWindowCreateAndDelete, the window procedure does not respond to the user's click.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6366171088112w200h110r869" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6366171088112" data-account="6058022026001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022026001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6366171088112w200h110r869');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://www.ptcusercommunity.com/t5/video/gallerypage/video-id/6366171088112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;Is there a better way to stop during the looping task, or is there a way to make the window procedure respond to the user's click even when a new window is created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note. I have attached the video and the entire code.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 08:13:06 GMT</pubDate>
    <dc:creator>CHASEONHO</dc:creator>
    <dc:date>2024-12-18T08:13:06Z</dc:date>
    <item>
      <title>About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/989621#M13704</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to implement a repetitive tasks that opens a listed drawing in a new window and exports it in a different format. and that it can be stopped during repetitive tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Work scenario)&lt;/P&gt;
&lt;P&gt;The repetitive tasks is implemented with a "for" loop, and the task of opening and exporting the drawing is temporarily implemented with the "EmptyWindowCreateAndDelete" function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use a window procedure to respond to the user to stop during the task. When the window procedure window is closed, the loop stops.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This function is effective in loops. The TEST2 function works only with the loop without EmptyWindowCreateAndDelete, and when the user closes the window, the loop seems to stop in the middle.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6366172441112w200h110r743" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6366172441112" data-account="6058022026001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022026001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6366172441112w200h110r743');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://www.ptcusercommunity.com/t5/video/gallerypage/video-id/6366172441112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;However, when used with a function that creates a new window like EmptyWindowCreateAndDelete, the window procedure does not respond to the user's click.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6366171088112w200h110r967" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6366171088112" data-account="6058022026001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022026001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6366171088112w200h110r967');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://www.ptcusercommunity.com/t5/video/gallerypage/video-id/6366171088112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;Is there a better way to stop during the looping task, or is there a way to make the window procedure respond to the user's click even when a new window is created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note. I have attached the video and the entire code.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 08:13:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/989621#M13704</guid>
      <dc:creator>CHASEONHO</dc:creator>
      <dc:date>2024-12-18T08:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/990101#M13710</link>
      <description>&lt;P&gt;You may need to activate the dialogue in the for loop to allow the X button to be clicked. It looks like you're creating your UI using a Windows Form, so I'm not exactly sure how to do this.&lt;BR /&gt;&lt;BR /&gt;I normally create Creo Toolkit UIs using the CreoUIEditor and then use ProUIDialogActivate in the for loop to activate the dialogue to allow the buttons to be clicked. In Creo 10, you can find the CreoUIEditor here: "C:\Program Files\PTC\Creo 10.0.X.0\Common iles\applications\creouieditor\bin\creo_ui_editor.bat".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using ProUIDialogActivate in the for loop has a lot of benefits:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;User can click the Stop or X buttons to exit the for loop.&lt;/LI&gt;
&lt;LI&gt;Status and progress bar updates can be given to the user.&lt;/LI&gt;
&lt;LI&gt;Without using&amp;nbsp;ProUIDialogActivate, Creo will often just enter a busy "spinning circle" mode until the for loop completes and ProMessageDisplay stops working to give the user status updates. There may be some other way to get ProMessageDisplay to reliably work in for loops but using&amp;nbsp;ProUIDialogActivate has worked for me.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lhoogeveen_0-1734628970727.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/115968iBE803EBA371AC773/image-size/large?v=v2&amp;amp;px=999" role="button" title="lhoogeveen_0-1734628970727.png" alt="lhoogeveen_0-1734628970727.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 17:25:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/990101#M13710</guid>
      <dc:creator>lhoogeveen</dc:creator>
      <dc:date>2024-12-19T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/990264#M13715</link>
      <description>&lt;P&gt;Why not a-synchronous with hidden graphics, next a simple button for stop?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 12:50:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/990264#M13715</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2024-12-20T12:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/990885#M13725</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/133409"&gt;@lhoogeveen&lt;/a&gt;&amp;nbsp;Thanks your reply,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but, Our tool is synchronous toolkit and in this case I cannot click a button in the middle of a FOR-LOOP.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 08:03:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/990885#M13725</guid>
      <dc:creator>CHASEONHO</dc:creator>
      <dc:date>2024-12-27T08:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/991037#M13727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;naive suggestion ... create&amp;nbsp;independent simple application which creates &lt;STRONG&gt;%TEMP%\stop_for_loop.txt&lt;/STRONG&gt; file and inside your FOR loop check whether this file exist.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 15:50:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/991037#M13727</guid>
      <dc:creator>MartinHanak</dc:creator>
      <dc:date>2024-12-29T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/991124#M13728</link>
      <description>&lt;P&gt;Our Toolkit applications are all synchronous and the method above works just fine.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 13:12:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/991124#M13728</guid>
      <dc:creator>lhoogeveen</dc:creator>
      <dc:date>2024-12-30T13:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: About the pause function for repetitive tasks</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/992415#M13734</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/269284"&gt;@CHASEONHO&lt;/a&gt;&lt;/SPAN&gt; ,&lt;BR /&gt;&lt;BR /&gt;I wanted to see if you got the help you needed.&lt;BR /&gt;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 13:01:52 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/About-the-pause-function-for-repetitive-tasks/m-p/992415#M13734</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2025-01-08T13:01:52Z</dc:date>
    </item>
  </channel>
</rss>

