Construct XREF contour

Hello everyone,

I am wondering if ther is a way to construct in Dynamo and then Civil the external contour of an XREF drawing, i see it as closed polycurve that include every objects of my xref…
Every idea is welcome

Thanks

@bertrand.savarit what do you mean by external contour?

@bertrand.savarit you want a convex hull, you need to extract all the points first (better if they are in the same plane).