added and reformatted original Revit 2012 swept blend generation code