Auto dimension ceilings using dynamo

Can i get edge from those reference ?