Thanks sdmitch that did the trick!
Thanks also tt_su for the code I'll def take a look at it but I'm able to draw the box except that it won't follow the orientation of the component. Is there a way to rotate the bbox once created?
Here's the code I'm using to create the bbox... credit needs to be given to Fredo that's where I got the code snipet.
bounding_box_corners=@boundingbox_lines.collect{|i| @main_module.bbox_point3d[i]}
view.draw_lines(bounding_box_corners)
@boundingbox_lines=[0, 1, 1, 3, 3, 2, 2, 0, 4, 5, 5, 7, 7, 6, 6, 4, 0, 4, 1, 5, 2, 6, 3, 7]
ie of @main_module.bbox_point3d...
@main_module.bbox_point3d [Point3d(0, 0, 0), Point3d(22, 0, 0), Point3d(0, 22, 0), Point3d(22, 22, 0), Point3d(0, 0, 22), Point3d(22, 0, 22), Point3d(0, 22, 22), Point3d(22, 22, 22)]