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?
@Kulkul by ‘import’ do you mean add the reference in Visual Studio? If so, then yes. And I did not get any errors when building. The error I get comes from Dynamo’s notification manager, and the nodes never show up in the left sidebar.
ok don’t worry. I will be on my pc soon. Meanwhile, Can you locate LibG.ProtoInterface.dll on your C drive and paste in your desktop folder where it says it’s missing.
These folders are in the DynamoCoreRuntime2.7.0 folder on my Desktop and they all contain a LibG.ProtoInterface.dll. Should I be looking somewhere else?
But if you don’t do it this way, then you do need to add the Build Events in the project properties like you mentioned. In my case, having both was redundant.