8.1.3. Zero Touch Templete#

8.1.3.1. Function#

8.1.3.1.1. Return one output result#

public static double MultiplyByTwo(double inputNumber = 2.0) 
{
    return inputNumber * 2.0;
}
def MultiplyByTwo(inputNumber =2.0):
    return inputNumber *2.0

Result:

4

8.1.3.1.2. Return multiple outputs#

[NodeCategory("Query")]
[MultiReturn("Revit Document", "Dynamo Document")]
public static IDictionary? GetDocument(global::Revit.Elements.Element? element)
{
    return new Dictionary<string, object?>
    {
        {"Revit Document", element.InternalElement.Document},
        {"Dynamo Document", element.InternalElement.Document.ToDynamoType()}
    };
}

Result: