Hello,
I am trying to write some C# code to load into Dynamo. Specifically, be able to pass in Revit elements, do some work, and output some stuff. I have slapped together a quick test code block which simply takes a list of elements and returns a list of their integer ids:
using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
namespace WAIDynamo {
public class DynoDump {
public static List<int> GetElementIds(List<Element> elems) {
List<int> ids = new List<int>();
foreach (Element e in elems) {
ids.Add(e.Id.IntegerValue);
}
return ids;
}
}
}
When I drop my node into the definition, I get the following warning and the code does not execute:
Warning: Method resolution failure on: GetElementIds() - 0CD069F4-6C8A-42B6-86B1-B5C17072751B.
Am I missing an important step? I have successfully worked with other kinds of nodes created using the Zero Touch Plugin Development framework but I am running into problems when trying to work with Revit Elements. Any help would be appreciated.
Thanks!