On the incorrect loading of the official "htmldialog-examples"

Hi ZhangjinHeng, actually your problem is the same with SPB’s.
It is not necessary to use a load program.

Putting the .rb example files into the “plug-in” folder is the right step.
However, the “.rb file” should be directly at the “plug-in” folder rather than any folders under “plug-in” such as “examples”.
Then, the extension will load as you re-start trimble or SU.
You can check it under menu “extensions” > “extension manager”

The key problem with Github html examples is that they are 1 step from “complete”.
For example, in the first tutorial “step01.rb”. There are only several methods defined but there are no executive method calls. Therefore, you should add a line to the module:
“show_dialog”
Save it and restart the app again. You will see the html dialog prompts at the app start-up.

I figured this out from Mariocha and Camlaman’s previous topics. I really appreciate their sharing.
https://forums.sketchup.com/t/example-html-dialog-suite/79584

1 Like