<?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 Re: Hook into Inventor process for progress in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11160029#M37227</link>
    <description>&lt;P&gt;Yes, there is a built in ProgressBar object that will display on the bottom bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a good example in the API help menu "Using inventor's progress bars API sample"&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' 64-bit version
Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongLong)

' 32-bit version
'Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Public Sub TestDialogProgressBar()
    Dim iStepCount As Long
    iStepCount = 50

    ' Create a new ProgressBar object.
    Dim oProgressBar As ProgressBar
    Set oProgressBar = ThisApplication.CreateProgressBar(False, iStepCount, "Test Progress")

    ' Set the message for the progress bar
    oProgressBar.Message = "Executing some process"

    Dim i As Long
    For i = 1 To iStepCount
        ' Sleep 0.2 sec to simulate some process
        Sleep 200
        oProgressBar.Message = "Executing some process - " &amp;amp; i
        oProgressBar.UpdateProgress
    Next

    ' Terminate the progress bar.
    oProgressBar.Close
End Sub

Public Sub TestStatusBarProgressBar()
    Dim iStepCount As Long
    iStepCount = 50

    ' Create a new ProgressBar object.
    Dim oProgressBar As ProgressBar
    Set oProgressBar = ThisApplication.CreateProgressBar(True, iStepCount, "Test Progress")

    ' Set the message for the progress bar
    oProgressBar.Message = "Executing some process"

    Dim i As Long
    For i = 1 To iStepCount
        ' Sleep 0.2 sec to simulate some process
        Sleep 200
        oProgressBar.Message = "Executing some process - " &amp;amp; i
        oProgressBar.UpdateProgress
    Next

    ' Terminate the progress bar.
    oProgressBar.Close
End Sub&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 10 May 2022 17:53:19 GMT</pubDate>
    <dc:creator>jdasilvaS39UQ</dc:creator>
    <dc:date>2022-05-10T17:53:19Z</dc:date>
    <item>
      <title>Hook into Inventor process for progress</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11156070#M37226</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to hook into the inventor process for a progress feedback? Different models have different criteria and i'd like to properly report back instead of adding counters. An inventor model will provide a visual update in the bottom right but can we access that through API to use it ourselves?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 07:40:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11156070#M37226</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2022-05-09T07:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hook into Inventor process for progress</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11160029#M37227</link>
      <description>&lt;P&gt;Yes, there is a built in ProgressBar object that will display on the bottom bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a good example in the API help menu "Using inventor's progress bars API sample"&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' 64-bit version
Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongLong)

' 32-bit version
'Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Public Sub TestDialogProgressBar()
    Dim iStepCount As Long
    iStepCount = 50

    ' Create a new ProgressBar object.
    Dim oProgressBar As ProgressBar
    Set oProgressBar = ThisApplication.CreateProgressBar(False, iStepCount, "Test Progress")

    ' Set the message for the progress bar
    oProgressBar.Message = "Executing some process"

    Dim i As Long
    For i = 1 To iStepCount
        ' Sleep 0.2 sec to simulate some process
        Sleep 200
        oProgressBar.Message = "Executing some process - " &amp;amp; i
        oProgressBar.UpdateProgress
    Next

    ' Terminate the progress bar.
    oProgressBar.Close
End Sub

Public Sub TestStatusBarProgressBar()
    Dim iStepCount As Long
    iStepCount = 50

    ' Create a new ProgressBar object.
    Dim oProgressBar As ProgressBar
    Set oProgressBar = ThisApplication.CreateProgressBar(True, iStepCount, "Test Progress")

    ' Set the message for the progress bar
    oProgressBar.Message = "Executing some process"

    Dim i As Long
    For i = 1 To iStepCount
        ' Sleep 0.2 sec to simulate some process
        Sleep 200
        oProgressBar.Message = "Executing some process - " &amp;amp; i
        oProgressBar.UpdateProgress
    Next

    ' Terminate the progress bar.
    oProgressBar.Close
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 May 2022 17:53:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11160029#M37227</guid>
      <dc:creator>jdasilvaS39UQ</dc:creator>
      <dc:date>2022-05-10T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hook into Inventor process for progress</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11168974#M37228</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That doesn't hook into a process. I'm looking to see if I can hook in rather that build my own process and post its progress to a progress bar.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 14:31:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11168974#M37228</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2022-05-14T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hook into Inventor process for progress</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11172213#M37229</link>
      <description>&lt;P&gt;Ah, sorry I misunderstood. I don't know how to get info from an existing process&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:16:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/hook-into-inventor-process-for-progress/m-p/11172213#M37229</guid>
      <dc:creator>jdasilvaS39UQ</dc:creator>
      <dc:date>2022-05-16T15:16:54Z</dc:date>
    </item>
  </channel>
</rss>

