Bug Report (Modify by DeepSeek R1): When I Run "selectAll:" But the .count() shows 0

@know634 You have wasted your time, because:

(1) This is not, repeat NOT a bug.

  • It is not “broken workflow expectations”.

  • This is you not understanding the API.

  • The Sketchup.send_action() method is asynchronous and meant for simple commands to attach to toolbar buttons. (Using this method is the equivalent of a user clicking a button or a menu option.)

  • Using Ruby’s global sleep() does not work well for SketchUp embedded Ruby. What is happening is that the UI.messagebox call is executing before the application core can really select the objects.

(2) The API obviously implements the Sketchup::Selection class for extension code to manipulate the selection of entity objects.

  • Your report is not informing anyone of anything new.

(3) SketchUp 2022 is not in production and will not be updated.

  • Production is now in the 2025 release cycle.

(4) The official SketchUp API Bug Tracker is at GitHub:

(5) All you have done is create noise in this forum category.

  • As an ancient scripture says:
    “Professing themselves to be wise, they [instead] became fools.”

  • And … I’m likely replying to a DeepSeek AI bot.

2 Likes