C# Windows forms backgroundworker not working and freezing my app ui

C# Windows forms backgroundworker not working and freezing my app ui

ahmed.elhawary73
Advocate Advocate
279 Views
1 Reply
Message 1 of 2

C# Windows forms backgroundworker not working and freezing my app ui

ahmed.elhawary73
Advocate
Advocate

Do anyone used background worker with Revit API context and worked and prevented application from freezing while loading

0 Likes
280 Views
1 Reply
Reply (1)
Message 2 of 2

moturi.magati.george
Autodesk
Autodesk

Hi @ahmed.elhawary73,

Kindly note that all Revit API interaction requires a valid Revit API context, and that is only provided by Revit itself. Also note that Revit is single threaded, and you cannot have multiple processes running at one go.

Perhaps this might help: https://forums.autodesk.com/t5/revit-api-forum/background-process-api-access/td-p/11937077

 

 

  Moturi George,     Developer Advocacy and Support,  ADN Open
0 Likes