hello everyone , im an architect coming from using grasshopper and rhino and now have been working with revit for the past 8 months in a new company , we use revit for architectural modeling and planning, and i have been handeled a task , which is to create a dynamo script that automates the creation of dimensions of the walls (exterior facade like in the picture) or also a 2 dimension by room(interior like in the picture)
1-i set up a really small script to extract the dimensions of the walls but when i select multidirectional walls , i get a non parallel linear dimension line thats just incorrect
2-when i select parallel walls this works , but my only concern is that i would like for the dimensions to stop and start again whenevr it hits a face from the wall and not select the axis of the wall just like in the manually done dimension picture in the buttom
so my question is is there a way to automate this with a script? thanks for any insight!

