I work as a boat designer and often require calculating total length of polyline & centre of gravity (both open & closed polylines).
I have a snippet below to show the sample code I am currently using - this only works with a group of lines - it doesnt work with polylines.
Currently everytime I h...