Dimensioning Curtail Panels?

Can anyone share examples of how to dimension curtain panels programmatically?

I published the node “Dimension Detail Line”, based on @Einar_Raknes’s code, but that I need to emulate what the user would do by selecting edges of panels when dimensioning…