Mouse position on Gride view

Is there any way to get the mouse position on the Grid view?
The “region_2d_to_location_3d” return a position that is parallel with view.
but i need a position like [x, y, 0]
Im working on an add-on for simulate 3Ds Max interface in Blender. in 3Ds Max every thing create on floor(grid) but for now Im not able to make the object on exact clicked point.

2 Likes