I have prepared this script for placing face based elements, but the problem is that the elements are not placed in correct place. Atleast two elements are being placed at same coordinates. I have attached the script and the final revit result as well.