Hi All,
I’m new to dynamo using python and am trying to create basic scripts to familiarize myself. I am trying to create a cogo point at ENZ (7, 30 45) and am using the following:
import clr
clr.AddReference(“Autodesk.Civil.DatabaseServices, Version=22.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”)
from Autodesk.Civil.DatabaseServices import *
easting = 7
northing = 30
elevation = 45
point = Point.Create()
point.X = easting
point.Y = northing
point.Z = elevation
tm = TransactionManager.Instance
tm.EnsureInTransaction(point.Database)
point.AddToDb()
tm.TransactionTaskDone()
The following error message is returned:
“Warning: FileNotFoundException : Unable to find assembly ‘Autodesk.Civil.DatabaseServices, Version=22.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
at Python.Runtime.CLRModule.AddReference(String name) [’ File “”, line 2, in \n’]”
I am using the following node (See attached)
Can anyone advise on what I’m doing wrong?