Python in Dynamo for Civil 3D

Hello good people, Im looking at how to advance my dynamo skills by incorporating Python into my workflows, Ive been searching for videos on youtube with these words “ Python in dynamo for Civil 3D”, Im unable to find some straight forward videos that can bring me up to speed on how I can learn python and use it in civil 3d environment, some videos I found are talking about installing anaconda and spider, I doubt if i should go that route since I have the civil 3d platform already installed, im looking for simple ways or procedures to jump start my experience with python in dynamo without having to install other softwares to learn dynamo, Ill appreciate any help , be it pdf or videos that I can watch, or any help, Thanks

Hi,

you can find a small exemple here

In order, I would recommend:

  1. Learning the basics of Python
  2. Learning the basics of the .Net Framework
  3. Learning how to use Python.Net with the Civil 3D API

Civil API ressources

Thanks a lot for sharing this documentation, could you also be having now video that walks me through the same, maybe it can be faster following the videos as well as I go through the pdf, Thanks

I don’t know of any video tutorials around Python in Dynamo for Civil 3D; but for basics you shouldn’t need to install anything that doesn’t come by way of Dynamo’s package manager.

Going though the primer is likely the ‘best’ path forward. That said I don’t recommend Python for Civil 3D automation; it’s slower, less stable, and and more problematic than C#. As anecdotal evidence thereof: we saw dozens of popular packages for Revit which are Python based but none on the Civil 3D side of things - EVERYTHING there was C# based.

So unless you’re asking “could we…”, looking to prove a point, build a one off work-around, or can’t install VisualStudio, you might want to reconsider diving into Python if the end-game is Civil 3D automation.