I’m working on a TBC macro that determines the center of a manhole, which is typically represented by a combination of circles and/or line strings. We use this computed center point to generate linework from the manhole center.
The macro works correctly when the geometry is a CAD polyline. However, when the manhole is represented as a multi‑segment line string in TBC, the calculated center (or centroid) is frequently offset from the true geometric center of the arcs. The discrepancy can range anywhere from about 0.005 ft up to 0.5 ft.
It appears that the centroid or anchor point being calculated for multi‑segment line strings does not always correspond to the true center of the arc geometry.
Has anyone encountered this issue before or have insight into what I might be missing when working with multi‑segment line strings versus CAD polylines? Any advice or guidance would be greatly appreciated.
Thanks in advance!
Richard Rehfeldt
Emery Sapp & Sons, Inc.