Reset the Model Group Origin point direction

Hi Everyone,
I have a question about the Model Group origin point.
Is there any way to define and change the direction of the x and y pivots for the origin point?
I am creating a Dynamo script for changing the type of the model groups therefore, I need to have the same origin point with the same x and y directions.


The existing model Group

image
The desired type of model Group

Part of the Script