I’m starting to dive into the world of Zero Touch nodes with C# and Visual Studio. I’m trying to create a very basic node that gets the length of a curve and multiplies it by two (pointless, I know). When trying to load the .dll in Dynamo, I get an error saying:
Can’t import Autodesk.DesignScript.Geometry.Curve, Curve is already imported as Autodesk.DesignScript.Geometry.Curve, namespace support needed.
Here is my code:
using Autodesk.DesignScript.Geometry;
namespace CurveTest
{
public class CurveTest
{
public static double DoubleLength(Curve curve)
{
return curve.Length * 2.0;
}
}
}
I’m using Dynamo Sandbox 2.7 and .NET Framework 4.8. Any ideas?