I want to write a custom DLL file from c# and be used in dynamo. I wrote a simple c# script shown below:
#region Namespaces
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
#endregion
namespace HelloWorld
{
public class HelloWorld
{
public void SayHello(string Whattosay, string title, bool show)
{
if (show)
{
TaskDialog.Show(title, Whattosay);
}
}
}
}
But when I try to import the dll file everything works except it asked me to pass the helloworld class on the block.
Is there a way to code this so dynamo will not ask for the helloworld class?