Hook into Inventor process for progress

Hook into Inventor process for progress

NachoShaw
Advisor Advisor
321 Views
3 Replies
Message 1 of 4

Hook into Inventor process for progress

NachoShaw
Advisor
Advisor

Hey

 

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?

 

 

Thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
322 Views
3 Replies
Replies (3)
Message 2 of 4

jdasilvaS39UQ
Advocate
Advocate

Yes, there is a built in ProgressBar object that will display on the bottom bar.

 

There is a good example in the API help menu "Using inventor's progress bars API sample"

' 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 - " & 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 - " & i
        oProgressBar.UpdateProgress
    Next

    ' Terminate the progress bar.
    oProgressBar.Close
End Sub
0 Likes
Message 3 of 4

NachoShaw
Advisor
Advisor

Hi

 

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.

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 4 of 4

jdasilvaS39UQ
Advocate
Advocate

Ah, sorry I misunderstood. I don't know how to get info from an existing process

0 Likes