ENZYME-APD / tapir-archicad-automation

The easiest way to use the JSON/Python API from Archicad without knowing how to code.
MIT License
57 stars 17 forks source link

Create element id input from multiple sources. #191

Closed kovacsv closed 3 weeks ago

kovacsv commented 3 weeks ago

The solution is based on the approach of @SzamosiMate. The goal is to allow multiple inputs for every input that requires a list of element ids.

The valid inputs are:

Also added a utility function to get a list of element ids from an input without the need to care about casting.

ElementsObj inputElements = ElementsObj.Create (DA, 0);
if (inputElements == null) {
    AddRuntimeMessage (GH_RuntimeMessageLevel.Error, "Input ElementIds failed to collect data.");
    return;
}