Author Topic: GetBoundingBox results  (Read 4521 times)

0 Members and 1 Guest are viewing this topic.

pjm8765

  • Guest
GetBoundingBox results
« 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.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: GetBoundingBox results
« Reply #1 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.

pjm8765

  • Guest
Re: GetBoundingBox results
« Reply #2 on: June 19, 2017, 06:10:14 AM »
Thanks very much.