# What is sketchup\_webhelper.exe?

**URL:** <https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031>\
**Category:** Ruby API\
**Created:** [June 1, 2022, 7:52am UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031 "2022-06-01T07:52:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry12](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@Henry12](https://forums.sketchup.com/u/Henry12)\
**Post date:** [June 1, 2022, 7:52am UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031/1 "2022-06-01T07:52:56Z")

</div>

I want to build a local service with Sketchup. There is a sketchup\_webhelper.exe. What is it and how can I use it to create a local server?

---

<div class="post-metadata">

**Author:** ![tt\_su](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tt_su/32/17_2.png) [@tt\_su](https://forums.sketchup.com/u/tt_su)\
**Post date:** [June 1, 2022, 9:40am UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031/2 "2022-06-01T09:40:14Z")

</div>

`sketchup_webhelper.exe` is a process that relates to SketchUp’s embedded webdialogs. They do not relate to running a server to serve HTTP requests.

> [@Henry12](#):
>
> how can I use it to create a local server?

What are you looking to do with this? What are you serving?

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [June 1, 2022, 9:54am UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031/3 "2022-06-01T09:54:19Z")

</div>

A local server would need to be running **outside** the SketchUp process to be helpful. This is because their listening loop blocks the main thread.

If you have a system Ruby install there are a choice of server gems.  
Also the Ruby standard library comes with a basic server implementation called [`WEBrick`](https://ruby-doc.org/stdlib-2.7.2/libdoc/webrick/rdoc/WEBrick.html).

But since this would be a separate external process, it could be implemented in Python or whatever. Search the web for “running a local server”.

**Do you need to init the server from within the SketchUp process for say a Ruby extension ?**

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [June 1, 2022, 10:10am UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031/4 "2022-06-01T10:10:07Z")

</div>

This topic may interest you …

> [@Success Comunicating With External App Using TCPSocket](https://forums.sketchup.com/t/success-comunicating-with-external-app-using-tcpsocket/33552):
>
> Hi all, A while back on a [post](http://forums.sketchup.com/t/defining-callbacks-to-receive-external-commands/28413/11) a need was discussed to communicate with an external app on windows. Sockets proved to be finicky because of blocking, but I was able to successfully accomplish it by using a timer and an error trap. Here is the code: require 'socket' s = TCPSocket.new('192.168.0.158',11235) s.puts 'Connected:SketchUp' stimer = UI.start\_timer(0.5,true) { begin puts s.read\_nonblock(5000) rescue end } And the gif: It would be interesting to find out if any…

---

<div class="post-metadata">

**Author:** ![Henry12](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@Henry12](https://forums.sketchup.com/u/Henry12)\
**Post date:** [June 1, 2022, 11:44pm UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031/5 "2022-06-01T23:44:35Z")

</div>

Actually my need is to render thumbnails of skp files.

I found a plugin that implemented it. There are many skp files on my computer, and the plugin can quickly render their thumbnails without opening the skp in SketchUp. I check the URLs of the thumbnails, such as [http://localhost:25870?path=](http://localhost:25870?path=)… The path is a local directory. I guess the plugin generate the thumbnail images and start a local server to render them.

I am confused how the plugin shows the local images. It seems to init a server within the Sketchup.

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [June 2, 2022, 12:11am UTC](https://forums.sketchup.com/t/what-is-sketchup-webhelper-exe/200031/6 "2022-06-02T00:11:23Z")

</div>

> [@Henry12](#):
>
> There are many skp files on my computer, and the plugin can quickly render their thumbnails without opening the skp in SketchUp.  
> …  
> I am confused how the plugin shows the local images. It seems to init a server within the Sketchup.

Likely using the API module method … [`Sketchup::save_thumbnail()`](https://ruby.sketchup.com/Sketchup.html#save_thumbnail-class_method)  
The thumbnail image is inside the SKP file, and this module method just extracts it, as it was last saved. (This might be out of sync if the user switched off “Redefine Thumbnail on Save” in Model Info dialog.)

> [@Henry12](#):
>
> I check the URLs of the thumbnails, such as [http://localhost:25870?path=…](http://localhost:25870?path=%E2%80%A6) The path is a local directory.

Ruby comes with the [`Dir`](https://ruby-doc.org/core-2.7.2/Dir.html), [`File`](https://ruby-doc.org/core-2.7.2/File.html) and [`File::Stat`](https://ruby-doc.org/core-2.7.2/File/Stat.html) classes for directly dealing with local files.
