IDK Programming: Make Group & Tag

:slightly_smiling_face: My first extension was accepted and is now available on the Extension Warehouse.

Make Group & Tag

Description:

Quickly create groups and tags using the toolbar button or a shortcut (e.g, ctrl + G). Defaults to “Group” with no tag, similar to the native SketchUp Make Group tool when pressing Enter or the Create button. Or, name your groups and add tags while you make them. Option to “Keep dialog open” allows continuous group and tag creation. Sort groups and components from loose geometry by unchecking “Include edges and faces”.

Inspired by the Great Outliner Glitch of '23!

Make Group and Tag | SketchUp Extension Warehouse

3 Likes

Congratulations and to many more extensions! :slight_smile:

1 Like

I installed the extension in SU 2022 and after restarting this error appears. I thought that since SU22 was not listed as supported software, I would test it in SU 2025, but the error is the same.

Thanks much! I really appreciate it @mihai.s

1 Like

Oh no! I’m looking into it now.

:slight_smile: It can happen, no problem.
I thought it would work in SU22, but after seeing the error, I thought I would copy that .rb file from the installation in SU25 and add it to SU22 and it would work.

Thank you for doing that. I haven’t delt with the encryption process before (which is automatic). I can see something is not correct but I don’t know why it’s there!

I don’t work with encrypted files eider, but I guess :
https://rubocop-sketchup.readthedocs.io/en/latest/cops_requirements/#sketchuprequirementssketchuprequire

3 Likes

I believe you are correct. I just removed the file extension from the required file and the PNG. Still loads on my end. I’ll see about an edit re-submission. Having never seen the encryption ‘stuff’ I never would have spotted that. Thank you!

1 Like

You are welcome! (BTW same issue with your Quick Sanps)

You can search in the forum (Ruby API category) There are plenty of topic about it. :slight_smile:

1 Like

Yes - I pulled it down. The first extension has worked for a couple of years so I wasn’t expecting the file extension to be an issue at all. I don’t use it in my _main and other files. Only the _loader. Anyway, I never would have figured it out without you having pointed it out. I guess I’m going to be looking over my loader files for awhile…

edit: aaah _registration…

2 Likes

ruby files turn from rb to rbe so itf your code search for a .rb file it won’t work after encription

Try using this

Sketchup.require(File.join(__dir__, '/filename'))
2 Likes

Well, you can see similar than that in my first post in this topic… :wink:
( Motto: Repetition is the mother of knowledge! :rofl: )

3 Likes

I am learning from your mistakes @3DxJFD, thanks for making them… :wink:

3 Likes

Nitpick: The / is unnecessary when using File.join, but it will not cause an error. (The method is smart enough to not cause // before the filename.)

3 Likes