# Python imports

**URL:** <https://forum.dynamobim.com/t/python-imports/1999>\
**Category:** Developers\
**Created:** [August 14, 2015, 5:43am UTC](https://forum.dynamobim.com/t/python-imports/1999 "2015-08-14T05:43:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel\_Krezel](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@Pawel\_Krezel](https://forum.dynamobim.com/u/Pawel_Krezel)\
**Post date:** [August 14, 2015, 5:43am UTC](https://forum.dynamobim.com/t/python-imports/1999/1 "2015-08-14T05:43:02Z")

</div>

Hi guys!

Im slowly getting into the python scripting in Dynamo, but i cant figure out, or find anywhere a documentation of often imported modules. Could anybody enlight me?

\<span style=“font-weight: bold; color: #f92672;”\>import\</span\> clr  
clr.\<span style=“font-weight: bold; color: #ffffff;”\>AddReference\</span\>(\<span style=“color: #e6db74;”\>‘ProtoGeometry’\</span\>)  
\<span style=“font-weight: bold; color: #f92672;”\>from\</span\> Autodesk.DesignScript.Geometry \<span style=“font-weight: bold; color: #f92672;”\>import\</span\> \*

clr.\<span style=“font-weight: bold; color: #ffffff;”\>AddReference\</span\>(\<span style=“color: #e6db74;”\>“RevitAPI”\</span\>)  
\<span style=“font-weight: bold; color: #f92672;”\>import\</span\> Autodesk

clr.\<span style=“font-weight: bold; color: #ffffff;”\>AddReference\</span\>(\<span style=“color: #e6db74;”\>“RevitServices”\</span\>)  
\<span style=“font-weight: bold; color: #f92672;”\>import\</span\> RevitServices  
\<span style=“font-weight: bold; color: #f92672;”\>from\</span\> RevitServices.Persistence \<span style=“font-weight: bold; color: #f92672;”\>import\</span\> DocumentManager  
\<span style=“font-weight: bold; color: #f92672;”\>from\</span\> RevitServices.Transactions \<span style=“font-weight: bold; color: #f92672;”\>import\</span\> TransactionManager

clr.\<span style=“font-weight: bold; color: #ffffff;”\>AddReference\</span\>(\<span style=“color: #e6db74;”\>“RevitNodes”\</span\>)  
\<span style=“font-weight: bold; color: #f92672;”\>import\</span\> Revit  
clr.\<span style=“font-weight: bold; color: #ffffff;”\>ImportExtensions\</span\>(Revit.Elements)

I know that the Protogeometry represents all the geometry made in Dynamo, but rest?

Thanks in advance for help!

---

<div class="post-metadata">

**Author:** ![Pawel\_Krezel](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@Pawel\_Krezel](https://forum.dynamobim.com/u/Pawel_Krezel)\
**Post date:** [August 14, 2015, 5:50am UTC](https://forum.dynamobim.com/t/python-imports/1999/2 "2015-08-14T05:50:26Z")

</div>

import clr  
clr.AddReference(‘ProtoGeometry’)  
from Autodesk.DesignScript.Geometry import \*

# Import DocumentManager and TransactionManager

clr.AddReference(“RevitServices”)  
import RevitServices  
from RevitServices.Persistence import DocumentManager  
from RevitServices.Transactions import TransactionManager

# Import RevitAPI

clr.AddReference(“RevitAPI”)  
import Autodesk  
from Autodesk.Revit.DB import \*

&nbsp;

sorry for the mess!

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [August 14, 2015, 12:22pm UTC](https://forum.dynamobim.com/t/python-imports/1999/3 "2015-08-14T12:22:37Z")

</div>

Pawel,

These are the most used imports:

> **[DynamoDS/Dynamo](https://github.com/DynamoDS/Dynamo/wiki/Python-0.6.3-to-0.7.x-Migration)**
>
> Open Source Graphical Programming for Design. Contribute to DynamoDS/Dynamo development by creating an account on GitHub.

Thank you,

---

<div class="post-metadata">

**Author:** ![Pawel\_Krezel](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@Pawel\_Krezel](https://forum.dynamobim.com/u/Pawel_Krezel)\
**Post date:** [August 17, 2015, 1:20am UTC](https://forum.dynamobim.com/t/python-imports/1999/4 "2015-08-17T01:20:10Z")

</div>

Thanks a lot!
