Hello.
I don't think you can do that single click thing with GDL, as placed objects are isolated (I can't find the position of surrounding walls based on a click). It could be done with an add on (like AC does with the magic wand), but you'd need to have more advanced coding skills. I can think of a couple of workarounds that would also need GDL, but I think they would complicate things even more.
One way to automate this is if you script a zone stamp, as you can query (I think) the resulting zone polygon and ask for each node coordinate. Total Zone by MasterScript does this. You can look into it.
So, given the options at hand... a few minutes of scripting yielded the attached object that I think you can use as a starting point. Extend it to your needs. If you do, post it back so more people can benefit from it too. I have no real use for it, but it was a fun rapid development experiment/challange.
Best regards.