Create a Mass Family in Dynamo and import it to revit

See my response here.