TaskDialog.EnableMarqueeProgressBar

TaskDialog.EnableMarqueeProgressBar

AdvancedBIMSystems
Enthusiast Enthusiast
2,236 Views
9 Replies
Message 1 of 10

TaskDialog.EnableMarqueeProgressBar

AdvancedBIMSystems
Enthusiast
Enthusiast

I believe this was introduced into Revit 2020 API but can't find any examples of how to implement.

 

Any links / sample /  ideas would be much appreciated.

 

Thanks:)

0 Likes
Accepted solutions (1)
2,237 Views
9 Replies
Replies (9)
Message 2 of 10

jeremytammik
Autodesk
Autodesk

Thank you for asking. Neither can I. I asked the development team for you.

   



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 10

AdvancedBIMSystems
Enthusiast
Enthusiast

Thanks Jeremy, look forward to their response.

 

Cheers

0 Likes
Message 4 of 10

studio-a-int
Advocate
Advocate

@AdvancedBIMSystems  - was that method mentioned by ADSK

TaskDialog_Methods_NET_5.JPG

TaskDialog_Methods_Revit_2020_1.JPG

development team?

neither .NET or Revit API, shows that method available. Maybe I'm missing something.

0 Likes
Message 5 of 10

AdvancedBIMSystems
Enthusiast
Enthusiast

Capture.JPG

0 Likes
Message 6 of 10

RPTHOMAS108
Mentor
Mentor

A progress bar with an indeterminate state on a modal TaskDialog that has to be closed by the user:

Q) When is the progress finished?

A) When I select one of the TaskDialog options. 

 

I always assumed it was intended to be more but not developed or internal use not intended to be exposed. It was documented in the 2012 API, back then they had a developer guide pdf and the full visual appearance was indicated:

 

200623.PNG

 

http://help.autodesk.com/view/RVT/2019/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Appendices_API...

 

0 Likes
Message 7 of 10

AdvancedBIMSystems
Enthusiast
Enthusiast

I think it can still be useful for a user to have the choice to accept or cancel the result of a given function.

Cancel could be made to roll back the function + close the TaskDialog  & ok commit the result + close.

 

It's probably not appropriate for every situation if it does work that way.

 

Hope to get an answer soon anyway...

0 Likes
Message 8 of 10

AdvancedBIMSystems
Enthusiast
Enthusiast

I still can't find any info on this topic. Would be great to hear some feedback, thanks.

0 Likes
Message 9 of 10

jeremytammik
Autodesk
Autodesk
Accepted solution

Please guys, learn to learn!

  

To do so efficiently, you often need to read the documentation and test things yourself.

 

By the way, rereading my first answer above, I note that this advice applies to me myself as well. 

 

Sorry for not taking a closer look myself the first time around.

 

The documentation already says it all:

 

https://www.revitapidocs.com/2020/b3a3412b-1f70-f7a6-a97f-12c51eaff104.htm

 

Enables a marquee style progress bar to be displayed in the TaskDialog.
 

When true, the TaskDialog will display a progress bar that has an indeterminate start and stop. A progress bar is a window that an application can use to indicate the progress of a lengthy operation. It consists of a rectangle that is animated as an operation progresses. The animation continues until the TaskDialog is closed. The default value is false.

  

Here is some sample code:

  

 

  TaskDialog d = new TaskDialog( "Test Marquee" );
  d.MainContent = "Testing the EnableMarqueeProgressBar property";
  d.MainInstruction = "Click 'Close'";
  d.EnableMarqueeProgressBar = true;
  d.Show();

 

 

I attached a full solution.

 

It took a handful of minutes to put together and test.

 

Please do so yourself next time before asking questions like this.

  

It will save time for yourself, not to mention others.

   

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 10 of 10

AdvancedBIMSystems
Enthusiast
Enthusiast

Thanks for your help Jeremy (& quirky response). 

 

p.s. you saved me some time

0 Likes