Set position of top view port based on point in perspective view port

Hi all,

Is there a function that can do this? So I click a point in the perspective view port and my top viewport changes its height to this point.

I need to draw something at a certain height, but the drawing position of the top view port is fixed. I would need to change this position (so along the z-axis).

I hope it’s somewhat clear what I meant to say. If not I’ll try to rephrase.

I guess you’re looking for CPlane.