Would there be a reason to use InnerDiameterOrWidth in lieu of InnerHeight, given the intent to extract the pipe's invert elevation, if the Point3D (pt) specified is the center of pipe?
ed.WriteMessage(
"\nINV = {0} ",
(pipe.GetClosestPointTo(pt).Z - (pipe.InnerHeight * 0.5))
);
Also, being this is the first time I am in fact working with a 3D pipe element (
rather than a 2D Line/Polyline), specifying a Point3D from plan view along the pipe at the midpoint yields an accurate, but unexpected invert elevation... For example if the pipe starts at EL = 10.00, and ends at EL = 0.00 (
remember, I'm in Florida! LoL), snapping to the midpoint one would expect EL = 5.00, which is not what is returned.
How would I go about translating the plan view midpoint to the point along the pipe straight down about the Z axis (presuming Top, WCS), rather than the GetClosestPointTo() which is perpendicular to the 3D pipe?