Book a Demo

Author Topic: Progress Bar for a Script run from a Diagram  (Read 4577 times)

djdejong

  • EA User
  • **
  • Posts: 32
  • Karma: +2/-0
    • View Profile
Progress Bar for a Script run from a Diagram
« on: November 23, 2016, 11:19:52 am »
Hey!

Does anyone know how to implement a progress bar that displays a script's progress as it's running? 

I have a script that analyzes diagrams, and I want to update the user of its progress as it's running -- but I'm not super keen on using the annoying message boxes. I was hoping there's something more elegant, such as a progress bar that gives info as the script is executing.

Thanks!
Dana

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Progress Bar for a Script run from a Diagram
« Reply #1 on: November 23, 2016, 12:21:55 pm »
I don't think that this is possible right now. Sounds like a useful feature, though.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Progress Bar for a Script run from a Diagram
« Reply #2 on: November 23, 2016, 12:31:56 pm »
You can create an ActiveX object that includes a progress control, and update it from your script.

The only problem is that you need to either find one pre-implemented or make one.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Progress Bar for a Script run from a Diagram
« Reply #3 on: November 23, 2016, 07:19:41 pm »
We use Session.Output to write to the output window.  Since the script is single threaded, there's nothing much else the user can do; so providing progress text in the output window works well for us.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!