Hello folks , i am an architect and ive been a user of node-based programming softwares(grasshopper for rhino and dynamo for revit) for about 5 years and i want to be more advanced in coding thats why im intereseted in learning Python in dynamo and possibly after Python standalone(VCS) for revit , any references on where i should start?
(i would prefer a free solution if possible!)
So many free resources.
I started with this one >>
I don’t know if they’ve changed it (I did it a few years ago) but it was fabulous. Starts off explaining really, really basic things and takes you though everything step by step.
I should add.. for Dynamo the most useful python to learn is a for loop.
I’d start learning the fundamentals of Python outside of Dynamo first.
i.e basic syntax (indentation), data structures, data types, operators, conditions, libraries/packages, arguments etc. There are loads of resources on this.
If you’ve used Dynamo & Grasshopper- some of this will already be familiar- such as lists & dictionaries
Everyone has their own learning style- I tend to set myself a task that is relevant to me- then work out how to do it.
You could learn Python with a simple text editor, although using something like vscode makes it easier.
Various LLMs are a great resource for this- in both creating the python and explaining what it does.
For example, the below prompts into ChatGPT or similar
“write a python script that exports a csv file from multiple text files”
“explain how it works”
Andrew
Python Tutorial i do this one first and 100 % with @Alien about loops.
and have a great online compiler as well so dont need a big IDE/compiler setup for the basic stuff…but for dynamo as is a little bit different, not much …i just use the python node ide inside dynamo as is more about import these right libraries (boilerplate)for just get it to work there ![]()
PS @GavinNicholls YT python videos is great as well, and really great for startup ![]()
I used IDLE python - which is what was recommended in that course.
Free and easy to use.
I use Visual Studio now - but only because I do other languages.
Welcome @amir.kharrat! Some great resources in here already, and 100% agree with @Alien and @sovitek that loops are the thing to get comfortable with first.
I figured I’d share how my path went, since it sounds pretty similar to where you’re at. I started as a Revit user and found Dynamo back in 2014. Graphs got me really far, but eventually I kept hitting things that were painful to do with nodes alone. That’s what pushed me into Python, and specifically Python inside Dynamo with the Revit API, because that was where the problems I actually cared about lived. Every script I wrote was solving something real on a project, which made it stick way better than generic exercises ever did for me.
After a while I noticed the Python nodes I kept copying from graph to graph were really just nodes waiting to happen. That’s what got me into C# and Zero Touch nodes, and eventually building packages.
So my (very biased) advice is to follow the same order:
- Dynamo, which you already have down. Lists, levels and data structures carry straight over.
- Python in Dynamo. Learn the basics (loops, conditionals, lists, dictionaries) from one of the free courses linked above, then start porting small parts of your own graphs into a Python node. Once you’re comfortable, start poking at the Revit API.
- C#, once you find yourself wanting real nodes, a UI, or something you can share as a package.
- Revit plugin development. By this point you already know the Revit API from Python and C# from building nodes, so making a full Revit add-in (external commands, ribbon buttons, your own tools) is a much smaller jump than it sounds.
I’ve also put together some free courses on YouTube that walk through this path: Design Tech Unraveled courses
Disclaimer: these courses are older and were recorded on earlier versions of Dynamo. They’re shared as-is, with no support and no guarantee they’ll work with current versions (the UI and Python boilerplate have changed a fair bit since, especially with CPython3/PythonNet3). The concepts still hold up though.
Have fun with it. It changed my career, and I think it’ll do the same for you.
> List Comprehensions has entered the chat
Free course, has Dynamo and fundamentals chapters, enjoy!
Hi, read this similar topic