# Return Current Dynamo Workspace's Warnings

**URL:** <https://forum.dynamobim.com/t/return-current-dynamo-workspaces-warnings/76135>\
**Category:** Developers\
**Created:** [May 3, 2022, 9:43pm UTC](https://forum.dynamobim.com/t/return-current-dynamo-workspaces-warnings/76135 "2022-05-03T21:43:39Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [May 4, 2022, 4:37pm UTC](https://forum.dynamobim.com/t/return-current-dynamo-workspaces-warnings/76135/8 "2022-05-04T16:37:48Z")

</div>

> [@wsayle](#):
>
> And so a lot of times the py script returns a null list even though there are warnings because (what I believe) the program has not yet entirely finished so there are no warnings to return

I think the only solution will be to run the script via a different context (via RevitDynamoModel class) from an addin or a macro  
some examples

> [@Execute Dynamo Script from Revit API](https://forum.dynamobim.com/t/execute-dynamo-script-from-revit-api/60529):
>
> Hi, I have a Revit Add-In with many commands. As part of he Add-In I am trying to allow users the ability to specify their own Dynamo scripts to be run at different points within a “long running” command. I have successfully got this setup but have run into a problem. With the way I have it implemented, the user specified Dynamo Script(s) continue to execute after my “long running” command has ended each time a change is made to the Revit project. Below is snapshot of code I am using to execut…

> **[\[Dynamo += Python\] Lancer des Scripts hors Dynamo](https://voltadynabim.blogspot.com/2021/09/dynamo-python-lancer-un-script-hors.html)**
>
> Blog sur le BIM, du Python et d'la Dynamo appliqués aux électrons

---

_[View the full topic](https://forum.dynamobim.com/t/return-current-dynamo-workspaces-warnings/76135)._
