Hi Patrick,
ill happily take a look at it if you can provide any demo project as I barely work with mep.
I have created a script for auto dimensioning floorplans that you might want to take a look at for chain dimensioning. https://discourse.pyrevitlabs.io/t/auto-dimension-floor-plans/2893/6