[Plugin] Make Named Group

[Plugin] Make Named Group

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

By request-ish: http://forums.sketchucation.com/viewtop ... 80&t=23567
(Code sample turned out to become full plugin.)

Adds Make Named Group to the Edit menu.

NamedGroup.png


Download

1
Last edited by thomthom on Sat Jan 18, 2014 1:24 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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?
0

alz 
PluginStore Author
PluginStore Author
 

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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...
0
TIG
User avatar
TIG 
Global Moderator
 

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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 :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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]
}
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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
0

din_wiesel 
 

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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
0
Regards,
JGA

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!
0

dedmin 
 

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?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

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

Clipboard01.jpg
0

dedmin 
 

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

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

:?:
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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
0

dedmin 
 

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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.
0

dedmin 
 

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
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

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.
0
While the cat's away, the mice will play
User avatar
bagatelo 
 

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?
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

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.
0

Goonster 
 

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?
0

veerlexyz 
 

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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
0

tula1847 
 

Re: [Plugin] Make Named Group

Postby kaas » Wed May 07, 2014 11:13 am

Just 'discovered' this plugin. Added an array with often used groupnames (SFB codes) which is displayed in the dropdown list instead of the layer names and this speeds up my workflow quite a bit. Many thanks for this gem Thom!
0

kaas 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 8 guests

Visit our sponsors: