hello and welcome to this forum.
For your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here.
I've added the tags and marked this thread as a question so when you considered it as solved, please change the state :)
About your question :
The problem with your code is that you are opening a dialog box but you can't interact with it. (as most dialog box)
Using CallCommand are cool and sometimes useful but in many cases you will find yourself in a dead end. (and pretty fast)
A better approche is to use the Maxon API and read our documentation. You will also find a lot of example in our github repository.
We have some manuals also. They are a nice way to start.
That said, how can you handle this problem ?
In Cinema 4D you can "move" the axis. You have to move the points.
To know where a point is, c4d need two things. The matrix's object and the local coordinate of the point. If you open your structure's tab you will see that how ever the object's position is, the coordinate of the points doesn't change.
As you can find using the search tool, you are not the first to ask that question :)
You have to move the axis where you want it, and update the points position (so visually they don't change).
This is often done by converting the local coordinates to global and the inverse.
Last but not least, Maxime have create a pretty complete example that do exactly what you need.
You can find it here
It can be scary if you are new to the world of development you will do that kind of stuff in no time.
Don't be afraid to ask questions here. We are here to help.