(Solved) Create object not on the right posistion

so i have this piece of code:


and these are the points:

but this is the result:
afbeelding
can sombody help me i have no idea what caused this

Change the second machine.PointX(…) to machine.PointY(…)

thanks! i quess i need to look over my code better : )