TheSwamp

Code Red => VB(A) => Topic started by: pjm8765 on June 16, 2017, 11:37:03 AM

Title: GetBoundingBox results
Post by: pjm8765 on June 16, 2017, 11:37:03 AM
I just want to check that the AcadLWPolyline.GetBoundingBox method returns the minimum and maximum X,Y and Z values for the polyline regardless of the angle/position that it's drawn at.

I've got a polyline that is a rectangle/square drawn by an automated system that is always parallel to another line, which may in turn be at an angle.  A previous programmer has used the GetBoundingBox method of that polyline to determine it's coordinates for use elsewhere...and that other function is breaking because the coordinates are incorrect.  I've attached an example polyline (which has the X in it), which I've drawn another polyline around to show what GetBoundingBox is returning.
Title: Re: GetBoundingBox results
Post by: roy_043 on June 16, 2017, 01:35:24 PM
The bounding box is determined relative to the WCS. So what you are seeing is in fact correct.
Title: Re: GetBoundingBox results
Post by: pjm8765 on June 19, 2017, 06:10:14 AM
Thanks very much.