# SendCommand in Dynamo returning \_\_COMObject has no attribute ActiveDocument

**URL:** <https://forum.dynamobim.com/t/sendcommand-in-dynamo-returning-comobject-has-no-attribute-activedocument/108712>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [March 12, 2025, 10:34pm UTC](https://forum.dynamobim.com/t/sendcommand-in-dynamo-returning-comobject-has-no-attribute-activedocument/108712 "2025-03-12T22:34:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [March 13, 2025, 12:17am UTC](https://forum.dynamobim.com/t/sendcommand-in-dynamo-returning-comobject-has-no-attribute-activedocument/108712/2 "2025-03-13T00:17:02Z")

</div>

I think you are going to have to get the COM Interop `AcadDocument` object - you are currently working with the .NET `Document` object  
Try

```python
acaddoc = DocumentExtension.GetAcadDocument(adoc)
acaddoc.SendCommand(changeViewCommand)

```

Also possible try the Interop property

```python
acaddoc = AcadDocument.ActiveDocument

```

I haven’t tested and I’m not sure how Dynamo and .NET may interact

---

_[View the full topic](https://forum.dynamobim.com/t/sendcommand-in-dynamo-returning-comobject-has-no-attribute-activedocument/108712)._
