Selection of the three points

Hi, take a look at the attached video, taken from a plugin,
can you kindly give me precise directions, where to look
in the Ruby API manual, to get the same result…
selection of the three points…
point on the face…
point of origin or departure…
second point along horizontal axis…
Third Point along vertical axis…created the point…

Thank you

Joseph.

You need to download the Ruby examples and study the files.

https://extensions.sketchup.com/en/content/example-ruby-scripts

"linetool.rb" in particular in the "su_examples" folder.

Also, study these others …

https://extensions.sketchup.com/en/content/utilities-tools
https://extensions.sketchup.com/en/content/rotated-rectangle-tool


And there are more by the SketchUp Team.

1 Like

OK…Thank you…I’ll try to look…

Joseph.

One more thing, Mr. Dan…
but the linetool file.rb where I find it…??
and the folder “su_examples”… is located…??

Thank you

Joseph.

Mr. Dan…I found everything,
in the “plugins” folder of Sketchup…

Thanks again.

Joseph.

1 Like

RBZ files are really ZIP archives. You can unzip them into a Documents subfolder so they are easier to find for study.

The example extensions isn’t maintained any more. It’s likely they’ll be removed from EW and migrated to GitHub.

Newer examples can be found in this repository:

A verbose example (tutorial) of a simple tool can be found here:

A version will less comments is found in the examples folder:

1 Like

Many thanks…exhaust
I’ll try to read it and understand it…