Door Swing in Revit

How to deal with automatic door swing in Revit on your own, with some Dynamo, Python and Konrad Sobon help.
Source