Materials to help understand how to use Python with Dynamo

Hello, my name is Matheus, I’m brazillian and I’m starting to learn how to use dynamo. But recently I realized that Dynamo had some “barriers” and I saw that I could use Python to improve it. I found on youtube the following video:

I learned a little about Python and I tried to use Python with Dyamo, so I saw this video on youtube and even for begginers, I found it hard to uderstand. I didn’t understand the reason why he imports these “folders” (example bellow). I want help to find materials that explains with more accuracy how can I do this things. It can be PDF files, videos…whatever helps me learn how to use it and when to use it. (These codes bellow is just an exemple of what I want to learn).

“”
import clr
#Import module for Revit
clr.AddReference(“RevitNodes”)
import Revit
clr.ImportExtensions(Revit.Elements)
#import module for the Document and transactions
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
#import Revit API
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *
#get the current document in Revit.
doc = DocumentManager.Instance.CurrentDBDocument

“”

Hello @MatheusDiasBrazilian,

That’s my question when I started learning Python and I put here links that I think might be useful to you at the moment.


2 Likes

Hi guys, I was traveling, so sorry for the delay. Thanks guys, I’ll start studying now. Keep sending news if you have other study materials.