api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

UI.show_inspector - Missing Entity Info panel

Open Fredosixx opened this issue 5 years ago • 7 comments

Something strange...! The EntityInfo panel does not seem to be in the list of instructors.

Currently UI.instructor_names gives the following list (on SU2020):

["Materials", "Components", "Styles", "Scenes", "Shadows", "Layers", "SoftenEdges", "Outliner", "Instructor", "Fog", "MatchPhoto"]

So there is no way to show the Entity Info panel from Ruby with the method UI.show_instructor.

Do I miss something?

Note: there are other ways to invoke the Entity Info panel, but my question is related to UI.show_instructor.

Fredosixx avatar Nov 24 '20 21:11 Fredosixx

I checked UI.inspector_names back to SU6 and it seems that it was never in that list. (Strange).

I just checked the source and the list is hard-coded. Not a dynamic list. (Fortunately "Layers" still work.)

I wasn't able to find any other means to open Entity Info I'm afraid. We'll have to add it.

thomthom avatar Nov 25 '20 10:11 thomthom

on Windows, with SU versions based on the tray GUI, you can use Sketchup.send_action 24300. However, the main drawback is that it acts as a toggle since it shows / hides the Entity Info panel in the tray. In contrast, UI.show_inspector always ensures that the panel is visible in the tray. So, it's not perfect.

On Mac, the command Sketchup.send_action 'entityProperties:' does the job as it would with UI.show_inspector, that is: show the panel when it is not visible, and then toggle between Shrink and Expand.

Fredosixx avatar Nov 25 '20 11:11 Fredosixx

I know this was logged previously, likely before the public tracker here at GitHub.

I also know the users have been asking for a toolbar button for it forever.

DanRathbun avatar Nov 25 '20 14:11 DanRathbun

That's what I am looking for...

Fredosixx avatar Nov 25 '20 16:11 Fredosixx

Logged as: SKEXT-2830

sketchupbot avatar Nov 30 '20 07:11 sketchupbot

NOTE: The doc is incorrect. This method always returns true regardless of the shown state of an inspector.

DanRathbun avatar Jan 31 '21 16:01 DanRathbun

This issue is resolved in SketchUp versions SU2023.0, SU2024.0 and SU2025.0.

kalpana-ghodeswar avatar Apr 24 '25 10:04 kalpana-ghodeswar

Ok for closing. Seems to be fixed now

Fredosixx avatar Apr 24 '25 11:04 Fredosixx