Help for macro make TemporaryBody

Good morning ,

I have one thing to ask about temporary body,

I would like to have a macro to create a temporary body selectable starting from a 3D sketch.

The body is always a parallelepiped.

Is it right if I use the API CreateBodyFromBox3?

I don't know how to create the vector, whereas the sketch will often be in space, as in the attached

Could you help me, please make it in writing a piece of code to create temporary body obtaining data from the sketch?

I do not know how to get started

I thank everyone in advance

Roberto

SolidworksApi macros