Hey,
Unfortunately not… Though it is a useful learning experience
Given how fragile coding is, it would need to be a rosetta stone exactly for C# for Dynamo and Revit…
The example you’ve given isn’t too complex though, I would make it as a graph using a lot of Archi-Lab nodes (thanks Konrad)…
Then when that was working, I might ‘node to code’ to compress it and give it a tidy up…
Hopefully that helps,
Mark