How to create sub_component with his own axes from 4 points

Well, this is not exactly wat you want to achieve, but you might get some idea, at least how to move the axes origin of components…

(BTW. The first method in my code - which could be the most interested by you - came from Thomas )