Dynamo script won't run in Civil 3D 2025

I have a dynamo script from a 3rd party that adds photos into my drawing which depends on the Civil 3D toolkit and which runs with no issues in Civil 3D 2024. In 2025 it requests the Civil 3D Toolkit package is installed (which it is up to version 1.1.32) and this seems to cause the error. I guess that this script is now useless in 2025 - I am a new user and can’t upload the package - can anyone confirm?

Thanks

Hey Neil!

I can confirm that there is some sort of dissruption occuring at the moment - up to version 2025.1, the out of the box Civil3d-nodes were very limited. Autodesk provided additional nodes via the Civil3d Toolkit.
Starting from version 2025.1, the Civil3d Toolkit is no longer maintained but a ton of its nodes (and many, many more) got moved the be available out of the box.
Unfortunately, some nodes didn’t “make the cut”, which is way a lot of people see their scripts failing at the moment.
See this post for further information.

There is a decent chance that you can update your script with the newly available nodes - if not I’m afraid you’ll have to stay within version 2024 or use code to accomplish 2024-behaviour.

Edit: If you post your dynamo graph or a screenshot of the failing nodes, I’m sure people are happy to help!

Bumped your trust level so you should be able to post now. If not try clearing your cookies. If that still doesn’t work use a 3rd party service such as box, onedrive, google drive. Dropbox, or the like (just be sure it is open for anyone to download).

The Civil 3D Toolkit was a side project of a few members of the Autodesk Consulting group. It stopped being actively maintained a little over two years ago. I am working with the authors to see if they can provide an update to restore functionality.

I can’t speak on behalf of those members, but I can say that members of the larger consulting org would happily pick this up if funded by a customer or product team.

1 Like

insertPic.dyn (44.0 KB)
Thanks for all the replies and @jacob.small I’ve hopefully uploaded the script.

@zachri.jensen I’m totally Dynamo illiterate and have no idea how to make any changes but this is a very useful script as I can take photos with my iPhone and add a block to my dwg and Ctrl click to view the picture.

@pumpaij There is always something (generally a third party lisp/net/dyn) that doesn’t work in the latest release due to updates to the underlying code and I don’t have the skill set to figure out why so i generally post to the forums in the vain hope that someone can see the benefit of the code, update it and spread the word.

1 Like

No worries! Just letting you know why it doesn’t work. It’s not anything that you did :slightly_smiling_face:

1 Like

The Civil 3D Toolkit was a side project of a few members of the Autodesk Consulting group.

Sorry, I didn’t even know about the existance of an Autodesk Consulting Group - I always figured it was just a team of Autodesk. :slight_smile:

@neilyj666:
I’ve opened your script in 2025.1 - the following nodes from 2024 have been removed, thus resulting in the script not working:

  • Photo.ByFilePath, .Location, .Angle
  • DocumentExtensions.GetCoordinateSystemCode
  • ObjectExtensions.AddHyperlink

I didn’t even knew about those nodes (would have been handy!) but I wrote an exif-Parser myself once. I’ve incorperated parts of that into your script that you can find attached.

There are some catches though: It doesn’t get the coordinate system from the drawing, you have to insert the EPSG-Code in the inputs and, the bigger one, it relies on two python-libraries (“exif” and “pyproj”) that have to be installed manually before the script can be exectued.
Here’s a how-to but since all of this requires some messing around, propably someone else has an easier suggestion.
It did however produce the same results so maybe it’s a starting point)

insertPic_dyn25.dyn (58.4 KB)

2 Likes

We’re a rather crafty group. :slight_smile:

1 Like

Thanks for this - the python stuff looks a bit complicated…!!! Do I need admin permissions on my laptop to install?

:100: @pumpaij, and I normally wouldn’t make a distinction. But in this case it’s important to clarify what is maintained/supported by the Civil 3D product team and what is not so that expectations are set accordingly :slightly_smiling_face:

1 Like

@zachri.jensen, @jacob.small You learn something every day! :partying_face:
Sorry for spreading misinformation! :slight_smile:

the python stuff looks a bit complicated…!!! Do I need admin permissions on my laptop to install?

In this case the documentation is so good that the steps in the link seem a bit overwhelming at first glance. In the end, its not so difficult; here’s a Youtube-Video with some banger background music to take you through it was well.
Depending on how tight the constraints on your PC are set, you might need permissions - I guess you’d just have to try. (And then hope that my script works - it’s not really thouroghly tested)

2 Likes