SketchUcation Plugin Store

 

 

[Plugin] Make Named Group (1.0.0) — 12 November 2009

[Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Thu Nov 12, 2009 10:35 pm

By request-ish: viewtopic.php?f=180&t=23567
(Code sample turned out to become full plugin.)

Adds Make Named Group to the Edit menu.

NamedGroup.png
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby alz » Fri Nov 13, 2009 12:40 am

Nice! I like the Layer addition.

What about defaulting it so the GROUP NAME field is highlighted first? Then you can immediately enter a group name, instead of selecting it, then naming it?
alz
 
Posts: 123
Joined: Mon Mar 17, 2008 2:40 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Fri Nov 13, 2009 8:28 am

alz wrote:What about defaulting it so the GROUP NAME field is highlighted first? Then you can immediately enter a group name, instead of selecting it, then naming it?

hm... don't think I have control of that. Unless I swap the order of them.

Or I could make a custom window. Will see.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby TIG » Fri Nov 13, 2009 10:26 am

Unfortunately with the basic inputbox the last set field is always highlighted...
TIG
User avatar
TIG
Global Moderator
 
Posts: 14012
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Fri Nov 13, 2009 10:47 am

TIG wrote:Unfortunately with the basic inputbox the last set field is always highlighted...

I filed a bug on this.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby Pilou » Fri Nov 13, 2009 10:59 am

In this order of idea: a ruby who take the name of a group (or Component) selected then create the same "Layer name" and put the group (or Component) in this new Layer named will ne fine :)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10079
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Fri Nov 13, 2009 11:05 am

Pilou wrote:In this order of idea: a ruby who take the name of a group (or Component) selected then create the same "Layer name" and put the group (or Component) in this new Layer named will ne fine :)


Untested, but this should place all groups/components into a layer based on their name.
Code: Select all
model = Sketchup.active_model
sel = model.selection

sel.each { |e|
  next unless e.is_a?(Sketchup::Group) || e.is_a?(Sketchup::ComponentInstance)
  model.layers.add(e.name) if model.layers[e.name].nil?
  e.layer = model.layers[e.name]
}
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby din_wiesel » Fri Nov 20, 2009 10:02 am

Would it be possible to put the entry from the "Edit Menu" to the context menu?

greets din
din_wiesel
 
Posts: 2
Joined: Fri Aug 01, 2008 6:52 am

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Fri Nov 20, 2009 10:15 am

I will see if I can add support for UI Manager - so you can choose. There are people who prefer not to have their context menu filled with more items. So it's not easy to get a balance. But when the user can choose then it's not an issue any more.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby JGA » Fri Nov 20, 2009 2:40 pm

Thanks for the plugin, a great idea.

Regards,
JGA
Regards,
JGA
JGA
 
Posts: 119
Joined: Wed Nov 14, 2007 4:57 pm
Location: Scotland
Name: JGA

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby dedmin » Mon Feb 07, 2011 10:05 pm

I just saw this - very useful! I started recently using groups instead of components and I'm using this wonderful plugin - viewtopic.php?t=9318
If there is a way to combine them into one - perfect!
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Mon Feb 07, 2011 10:19 pm

dedmin wrote:I just saw this - very useful! I started recently using groups instead of components and I'm using this wonderful plugin - viewtopic.php?t=9318
If there is a way to combine them into one - perfect!

Is there different functionality?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby dedmin » Mon Feb 07, 2011 10:21 pm

Clipboard01.jpg
Please, register (free) to access all the attachments on the forums.
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Mon Feb 07, 2011 10:23 pm

:?:
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby dedmin » Mon Feb 07, 2011 10:25 pm

It has a drop-down list of 20 names to choose from
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Mon Feb 07, 2011 10:29 pm

That seems very specific...
I still don't see what combination it is you're looking for.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby dedmin » Mon Feb 07, 2011 10:33 pm

Your plugin plus a drop-down list for the group names. Jim's plugin allows You to write 20 most used names in a text file for later use - useful in many fields where the parts are common - furniture and the like.
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby utiler » Sun Feb 27, 2011 2:43 am

Hey Thomas, love your plugins....
With this one; do you think you could have the group added to a layer of the same name? If no layer, ask the user do you want to add a layer? Would be a great timesaver.....

Thanks.
A
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby bagatelo » Sun Feb 27, 2011 4:02 pm

utiler wrote:Hey Thomas, love your plugins....
With this one; do you think you could have the group added to a layer of the same name? If no layer, ask the user do you want to add a layer? Would be a great timesaver.....

Thanks.
A



It would be interesting if there was a box or drop down menu where it appeared the possibility to create and now include the object in a layer with the same name.

Create components instead of groups might be interesting too.
User avatar
bagatelo
 
Posts: 243
Joined: Wed Apr 16, 2008 4:55 pm
Location: São José, Santa Catarina, Brasil
Name: Alex Henrique
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: interior design
Level of SketchUp: Intermediate

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby utiler » Mon May 23, 2011 6:01 am

utiler wrote:Hey Thomas, love your plugins....
With this one; do you think you could have the group added to a layer of the same name? If no layer, ask the user do you want to add a layer? Would be a great timesaver.....

Thanks.
A



Thom?
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby Goonster » Mon May 23, 2011 7:06 am

Great plug in.Thanks. ;)

I`ve assigned `G' as a shortcut to it so I don`t have to keep going to the Edit menu.
Goonster
 
Posts: 59
Joined: Sat Mar 12, 2011 8:44 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby veerlexyz » Fri Oct 26, 2012 12:56 pm

Thanks a lot for this plugin.
I would love to see this plugin "Make Named Group" in the right-click-menu.
Is that possible?
veerlexyz
 
Posts: 6
Joined: Fri Jan 06, 2012 6:15 pm

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby thomthom » Fri Oct 26, 2012 2:15 pm

veerlexyz wrote:Thanks a lot for this plugin.
I would love to see this plugin "Make Named Group" in the right-click-menu.
Is that possible?


It is possible - but if I where to add it I'd get requests about removing it from people who want to reduce the amount of items in the context menu. Right now I don't have the time to make a UI for controlling this option.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Make Named Group (1.0.0) — 12 November 2009

Postby tula1847 » Fri Apr 05, 2013 2:57 am

Hello just tried to download and says the .rb file is locked. How do I unlock I have a macbook pro.
Thanks
tula1847
 
Posts: 1
Joined: Fri Apr 05, 2013 1:01 am
Name: Rachel Ross
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: adwia, Google Feedfetcher, Graffic, mddox, War Crime and 5 guests