Author Topic: GetBoundingBox results  (Read 116 times)

0 Members and 1 Guest are viewing this topic.

pjm8765

  • Newt
  • Posts: 21
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

  • Swamp Rat
  • Posts: 1440
  • BricsCAD 16
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

  • Newt
  • Posts: 21
Re: GetBoundingBox results
« Reply #2 on: June 19, 2017, 06:10:14 am »
Thanks very much.