# When I encode using RBE, my file doesn't run.

**URL:** <https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309>\
**Category:** Ruby API\
**Created:** [May 30, 2026, 3:29pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309 "2026-05-30T15:29:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tai17](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@Tai17](https://forums.sketchup.com/u/Tai17)\
**Post date:** [May 30, 2026, 3:29pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/1 "2026-05-30T15:29:14Z")

</div>

This is an unencrypted RBE file; it runs fine, but it doesn’t run after RBE encryption. Please help me, I’m a beginner.🥲

[taistudio.rbz](https://forums.sketchup.com/uploads/short-url/aFQthUpMHqAI05PYhu8iC0Byryi.rbz) (82.5 KB)

---

<div class="post-metadata">

**Author:** ![dezmo](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/dezmo/32/51058_2.png) [@dezmo](https://forums.sketchup.com/u/dezmo)\
**Post date:** [May 30, 2026, 3:30pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/2 "2026-05-30T15:30:34Z")

</div>

Please see this topic:

[https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347271](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347271)

---

<div class="post-metadata">

**Author:** ![3DxJFD](https://avatars.discourse-cdn.com/v4/letter/3/f07891/32.png) [@3DxJFD](https://forums.sketchup.com/u/3DxJFD)\
**Post date:** [May 30, 2026, 3:34pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/3 "2026-05-30T15:34:04Z")

</div>

This is the same as before:

```auto
EXTENSION_PATH = File.join( __dir__ , EXTENSION_ID, 'main.rbe').freeze

```

Try removing the file extension, “.rbe”.

Don’t change or add “.rbe” to encrypt. The signing/encryption process does that to your .rb files for you.

So, use this:

```auto
EXTENSION_PATH = File.join( __dir__ , EXTENSION_ID, 'main').freeze

```

---

<div class="post-metadata">

**Author:** ![dezmo](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/dezmo/32/51058_2.png) [@dezmo](https://forums.sketchup.com/u/dezmo)\
**Post date:** [May 30, 2026, 3:39pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/4 "2026-05-30T15:39:56Z")

</div>

The topic opener shared exactly the same file as a day ago punpun did.  
It’s probably the same person, just with memory loss. 😲

---

<div class="post-metadata">

**Author:** ![3DxJFD](https://avatars.discourse-cdn.com/v4/letter/3/f07891/32.png) [@3DxJFD](https://forums.sketchup.com/u/3DxJFD)\
**Post date:** [May 30, 2026, 3:42pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/5 "2026-05-30T15:42:42Z")

</div>

There must be some misunderstanding. It looks like there is some effort to ‘manually encrypt’ by changing file extensions.

Do extensions even work if you rename your files, .rbe?

---

<div class="post-metadata">

**Author:** ![N1LESH](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/n1lesh/32/264726_2.png) [@N1LESH](https://forums.sketchup.com/u/N1LESH)\
**Post date:** [May 30, 2026, 4:56pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/6 "2026-05-30T16:56:49Z")

</div>

[plugin.zip](https://forums.sketchup.com/uploads/short-url/f4Uz7IGMEkJ7Bd0zXNtd9yROUTG.zip) (163.5 KB)

I checked your package and fixed the encryption/loading structure.

SketchUp is now able to reach the plugin files correctly after encryption.

next issue seems to be inside:

`taistudio/tools/pline_cad/pline.rb`

That file appears incomplete or corrupted in the package you shared, so the remaining issue no longer appears to be related to RBE encryption. Please send the last working unencrypted version of the plugin folder, especially this file, and I can check it again.

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [May 30, 2026, 7:11pm UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/7 "2026-05-30T19:11:32Z")

</div>

No, they will not. Extensions are just hints these days. The actual content of the file determines whether it is encrypted. Also, SketchUp’s encryption scheme is proprietary, so nobody else can generate a correct extension rbz without illegally cracking the encryption system.

---

<div class="post-metadata">

**Author:** ![3DxJFD](https://avatars.discourse-cdn.com/v4/letter/3/f07891/32.png) [@3DxJFD](https://forums.sketchup.com/u/3DxJFD)\
**Post date:** [May 31, 2026, 2:09am UTC](https://forums.sketchup.com/t/when-i-encode-using-rbe-my-file-doesnt-run/347309/8 "2026-05-31T02:09:14Z")

</div>

That’s what I suspected about the just appending rbe. It seems like that is what the OP is doing, so I would’ve guessed it would not have run at all. The OP seems to say otherwise.

As far as having the .rb in the require statement when encrypting an extension that was working fine… been there, done that!
