api-issue-tracker
api-issue-tracker copied to clipboard
SketchUp Search shows empty search results with string "Extension Menu Text"
Issue: SketchUp Search shows empty search results with string "Extension Menu Text"
I am using the case matching version of the "Extension Menu Text", although I do not think that matters?
If I search for the first word of the Extension Menu Text then the Command shows up.
If I wanted a command to show up as the first result in SketchUp Search what string should I use?
Can you post some screenshots to visualize what you're seeing?
And any sample code to accompany?
Lets start with this example.
Why is there no results with the Search Criteria perfectly matching the case sensitive "Extension Menu Text"
FYI, it is very hard to copy code from an image of code (unless one has an OCR app of some kind.)
i = UI::Command.new("Pipe on Axis") { self.pipe_on_axis }
i.menu_text = "Pipe on Axis"
i.tooltip = "Put all selected Pipe on Axis."
m.add_item i
Had a chance to test this today, using:
module Issue842
def self.pipe_on_axis
UI.messagebox("Pipe on Axis command.")
end
if !defined?(@loaded)
UI::Command.new("Pipe on Axis") {
#
self.pipe_on_axis
#
}.instance_eval do
self.menu_text= "Pipe on Axis"
self.tooltip= "Put all selected Pipe on Axis."
self.status_bar_text= self.tooltip
UI.menu('Plugins').add_item(self)
end
@loaded = true
end
end
I see the best matches occurring with 2 characters as in "Pi"
. The command is at the top of the list.
The next best match happens with "Pipe "
(note the trailing space) where the command is 2nd on the list.
With "Pipe"
(no trailing space) the command is not in the matches. (Strange what the other matches are!)
With "Pipe on"
(with or without trailing space) there are no matches at all.
Weirdly "Axis"
also is a best match with the command appearing at the top of the results.
Logged as: SKEXT-3764