BackGroundWorker.DoWork with Revit API
i'm trying to make a progress bar to a relatively long process (that needs a nested loop) when i use the same code without the Revit API (simulation) the whole systeme work fine and the progress is reported but when i include the real code (Revit API with transaction and other API methods) the code compile without any errors but it did not works (the UI button don't run the bunch of code inside the DoWork method) and all the code is worthless.
please if anyone can give a hint, thanks
Link copied