Bounding Box of 3d Sketch

Hi all,

   I wanted to know if there is any standard tool that creates a Construction/Bounding Box around a segment of a 3d sketch in order to control it accurately with x,y, and z dimensions.  Have attached a pic of what I'm aiming for.  I use this method for creating a controlled, faceted/stepped 3d sketch to use as a sweep path.  The paths sometimes have up to 100 line segments so it would be great if I could having to create this box, or at least the basic construction geometry for each one.

   If not a bounding box type tool, can a macro be written to surround any selected line segement with a construction line cube?

Thanks!

SolidworksSketching