How to Display a Gumball?

Hi,everyone.
I have a problem,How to display Gumball when using the doc.Objects.Select method?
Write the code like this, and when you’re done, you can display Gumball


But like this, when the Gumball is not displayed after selection, am I missing something?