Best practice to support multiple SketchUp versions?

For pre-2018 versions, on Windows you can alternatively use a send action ID for the validity check tool.

Ruby …

Sketchup::send_action(21124) # launch the validity check tool

It will always display the modal results dialog (captioned “Validity Check”) needing to be dismissed by the user.

C …

rb_eval_string("Sketchup::send_action(21124)");

… or, use rb_funcall if you prefer.


REF:

P.S.

I logged a new Ruby API issue in the Public Issue tracker for everyone to watch or comment on …
(even though Thomas has already logged it internally.)