# Autodesk Revit and Dynamo library

**URL:** <https://forum.dynamobim.com/t/autodesk-revit-and-dynamo-library/96532>\
**Category:** Developers\
**Tags:** revit, python, dynamo\
**Created:** [December 19, 2023, 1:14pm UTC](https://forum.dynamobim.com/t/autodesk-revit-and-dynamo-library/96532 "2023-12-19T13:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arshamasadi1990](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@arshamasadi1990](https://forum.dynamobim.com/u/arshamasadi1990)\
**Post date:** [December 19, 2023, 1:14pm UTC](https://forum.dynamobim.com/t/autodesk-revit-and-dynamo-library/96532/1 "2023-12-19T13:14:43Z")

</div>

Hello friends  
I want to import Autodesk revit And dynamo library into VScode so when I’m coding, syntaxes show after “.” as same as python script node’s Environment in Dynamo.  
Can anyone help me how to download and import library into VScode ?

---

<div class="post-metadata">

**Author:** ![danail.momchilov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danail.momchilov/32/152056_2.png) [@danail.momchilov](https://forum.dynamobim.com/u/danail.momchilov)\
**Post date:** [December 19, 2023, 1:27pm UTC](https://forum.dynamobim.com/t/autodesk-revit-and-dynamo-library/96532/2 "2023-12-19T13:27:56Z")

</div>

hi!

If I understood correctly, you are trying to import the Revit and Dynamo API’s in VS and develop your custom package there?

Here’s a sample import, in this case it’s C#:

```auto
using Autodesk.DesignScript.Geometry;

// load Runtime module in order to use the MultiReturn attribute : more info on multiple return values in the Dynamo Primer
using Autodesk.DesignScript.Runtime;

// load Revit API
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

// load Dynamo API
using Revit.Elements;
using RevitServices.Persistence;
using Revit.GeometryConversion;

```

Please note, you would need to reference the API first. There is also lot of information on the topic, as well as step by step tutorials in the Dynamo primer:  
[https://developer.dynamobim.org/03-Development-Options/3-4-zerotouch-nodes.html](https://developer.dynamobim.org/03-Development-Options/3-4-zerotouch-nodes.html)

Cheers!

---

<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:** [December 19, 2023, 1:32pm UTC](https://forum.dynamobim.com/t/autodesk-revit-and-dynamo-library/96532/3 "2023-12-19T13:32:34Z")

</div>

Check out this blog post using a helper app from [pyRevit](https://discourse.pyrevitlabs.io/) to create python stubs

> **[Create Python stubs 🐱‍👤](https://www.macro4bim.com/post/create-python-stubs)**
>
> In a post of some time ago, I talked about the implementation of intelliSense and autocompletion of your Revit code using Visual Studio Code. VSCode intelliSense for Revit As you can see from there, a side note is alerting you that, depending on the...

Once you have your folder add it to AutoComplete Extra Paths and Stub Paths in VS Code settings
