Align bounding box with the original objects

Hi,
Is there any workaround to align the bounding box to the original objects direction? polylines for example. the polylines are in black and the bounding boxes are in grey.

Aligning Boundary Box.dyn (13.2 KB)
Aligning Boundary Box.dwg (1.6 MB)

Your question is too general, it would be helpful to provide some context;

  • What is the problem are you trying to solve
  • What have you tried so far
  • What is your definition of an object’s direction
1 Like

I’ve provided the drawing, script and a snip to illustrate, though, will try to elaborate more through answering your question:

  • What is the problem are you trying to solve: I’m trying to align the bounding box to the same orientation of the original objects, in this case, the polylines

  • What have you tried so far: The script is attached, bounding boxes show up respecting the underpinning min and max point, but they are not respecting the orientation of the WCS coordinates.

  • What is your definition of an object’s direction: I mean the orientation, I need the bounding boxes to be as oriented and rotated as the original polylines.

I hope that explains well.