You could pick up the mouse location but that is a whole different skill level and has it's own complications.
I would opt for a either hard coded or even pick a part close to your desired location in the model then use it's location to place the assemblies by code.
Hardcoded:
With the above code for multiple insertions you would first need the code in a for loop with the number of assemblies required and then an index value for the new locations this way the insertion point can be moved over on each pass through the loop. The downside is the user can't pick where to place.
You could also use the place command using the command manger to maybe allow the user pick where to place but it can be more difficult to control these interactions. I see you have a post related to that already so best to discuss that there.
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan