# SendCommand in ExternalDocument

**URL:** <https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [January 29, 2023, 7:43am UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476 "2023-01-29T07:43:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel76](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Angel76](https://forum.dynamobim.com/u/Angel76)\
**Post date:** [January 29, 2023, 7:43am UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/1 "2023-01-29T07:43:40Z")

</div>

How to apply SendCommand in an ExternalDocument

 ![01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13c6f83a3e05df0644f58d8e8abf39eecba409fa.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 29, 2023, 3:39pm UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/2 "2023-01-29T15:39:25Z")

</div>

Unfortunately that is not possible. An open drawing is required.

---

<div class="post-metadata">

**Author:** ![Angel76](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Angel76](https://forum.dynamobim.com/u/Angel76)\
**Post date:** [January 30, 2023, 12:34am UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/3 "2023-01-30T00:34:56Z")

</div>

Thanks for your answer, and if I have 3 files open is it possible to apply a script to all of them?

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 30, 2023, 1:31am UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/4 "2023-01-30T01:31:35Z")

</div>

Yes, but you’ll have to do it through a Python node. There’s some starter code here that might help:

> [@Run Dynamo Script on entire folder of dwg's](https://forum.dynamobim.com/t/run-dynamo-script-on-entire-folder-of-dwgs/53723):
>
> Hello, I am looking to run a Dynamo script on 5,000 files. The script deletes one block and inserts another at certain coordinates, happy to share it. Is there a way to run this Batch on a whole folder of dwg’s? There’s a node Folder.get.contents.in.folder that is looking for forge folder, maybe I need to create one of those? This seems like something lots of folks would want. Thank You!

---

<div class="post-metadata">

**Author:** ![Angel76](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Angel76](https://forum.dynamobim.com/u/Angel76)\
**Post date:** [January 30, 2023, 1:46am UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/5 "2023-01-30T01:46:35Z")

</div>

Thank you very much mzjensen, I’m not fluent in python

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 31, 2023, 7:51pm UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/6 "2023-01-31T19:51:02Z")

</div>

7 posts were split to a new topic: [BriMohareb SendCommand](https://forum.dynamobim.com/t/brimohareb-sendcommand/85594)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 31, 2023, 7:51pm UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/13 "2023-01-31T19:51:33Z")

</div>

A post was merged into an existing topic: [BriMohareb SendCommand](https://forum.dynamobim.com/t/brimohareb-sendcommand/85594/8)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 31, 2023, 7:52pm UTC](https://forum.dynamobim.com/t/sendcommand-in-externaldocument/85476/14 "2023-01-31T19:52:08Z")

</div>

A post was merged into an existing topic: [BriMohareb SendCommand](https://forum.dynamobim.com/t/brimohareb-sendcommand/85594/9)
