Code Red > VB(A)

GetBoundingBox results

(1/1)

pjm8765:
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.

roy_043:
The bounding box is determined relative to the WCS. So what you are seeing is in fact correct.

pjm8765:
Thanks very much.

Navigation

[0] Message Index

Go to full version