[Plugin] Groups to Components

Re: [Plugin] Groups to Components

Postby irwanwr » Fri Jul 25, 2014 6:03 pm

I thought there's already Group to Components function in Selection Toys, isn't it?
0
User avatar
irwanwr 
 

Re: [Plugin] Groups to Components

Postby thomthom » Fri Jul 25, 2014 6:06 pm

irwanwr wrote:I thought there's already Group to Components function in Selection Toys, isn't it?

It's somewhat different. Selection Toys got a function to convert group copies to component instance while ensuring each instance isn't made unique.
This small extension had a special purpose for preserving naming in a special way by request of some user.
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] Groups to Components

Postby bsfranza » Mon Sep 29, 2014 9:50 am

hi there,

could it be that its not yet updated for su 2014???

its not showing in any menue :(
0

bsfranza 
 

Re: [Plugin] Groups to Components

Postby Dave R » Mon Sep 29, 2014 10:54 am

bsfranza wrote:hi there,

could it be that its not yet updated for su 2014???

its not showing in any menue :(


No. It works fine n SketchUp 2014. How did you install it? If installed correctly, it will appear in the Plugins menu.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Groups to Components

Postby koliboti » Mon Feb 02, 2015 9:05 pm

Hi, do you guys have plugin that makes components to groups, that work wit SU2015?
0

koliboti 
 

Re: [Plugin] Groups to Components

Postby TIG » Mon Feb 02, 2015 11:04 pm

koliboti wrote:Hi, do you guys have plugin that makes components to groups, that work wit SU2015?
I assume you mean to make component-instances into groups ?
This one liner processed a selection. Making any component-instances into groups, using the same name/layer/material/attributes as the original...
Code: Select all
m=Sketchup.active_model;a=m.active_entities;s=m.selection;m.start_operation('!');s.grep(Sketchup::ComponentInstance).each{|i|g=a.add_group();e=g.entities;n=e.add_instance(i.definition, i.transformation);n.explode;g.name=i.definition.name;g.layer=i.layer;g.material=i.material;i.attribute_dictionaries.each{|d|d.each_pair{|k,v|g.add_attribute(d.name,k,v)}}if i.attribute_dictionaries;i.erase!;};m.commit_operation
2
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Groups to Components

Postby koliboti » Tue Feb 24, 2015 9:50 pm

TIG wrote:
koliboti wrote:Hi, do you guys have plugin that makes components to groups, that work wit SU2015?
I assume you mean to make component-instances into groups ?
This one liner processed a selection. Making any component-instances into groups, using the same name/layer/material/attributes as the original...
Code: Select all
m=Sketchup.active_model;a=m.active_entities;s=m.selection;m.start_operation('!');s.grep(Sketchup::ComponentInstance).each{|i|g=a.add_group();e=g.entities;n=e.add_instance(i.definition, i.transformation);n.explode;g.name=i.definition.name;g.layer=i.layer;g.material=i.material;i.attribute_dictionaries.each{|d|d.each_pair{|k,v|g.add_attribute(d.name,k,v)}}if i.attribute_dictionaries;i.erase!;};m.commit_operation


Thank you very-very much TIG! it works perfect also with imported 3ds objects. :bounce:
0

koliboti 
 

Re: [Plugin] Groups to Components

Postby camilo_caicedo » Wed Mar 11, 2015 12:39 am

Hi thomthom.

Your conversion tool changes all groups in the selection to components, one component for each group where the group's name is transferred to the component's definition's name.

Please, do you know about some plugin which changes all groups in the selection to a single component (the groups should be a copy of a single group), so you obtain one component for each group, where the component definition name of each component is the same?

People often forget to make a component instead of a group, so if you repeat a group, and then you rotate or move that group to diferent places many times, it would be hard to make a component and then repeat it, rotate or move it many times again. A tool to convert those groups to one component would allow you to go on with your job.

Thank's
0

camilo_caicedo 
 

Re: [Plugin] Groups to Components

Postby thomthom » Wed Mar 11, 2015 6:23 pm

If the group haven't been modified (or even opened) then Selection Toys can convert such groups to components. But if the user has performed any kind of action that makes SU kick in the make-unique then it won't be able to detect that.
You can force replace with Component Replacer, but you need to pick out which ones to replace with what.
1
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] Groups to Components

Postby rv1974 » Fri Jan 27, 2017 7:02 am

Thomthom, may I request this tool to keep the object(s) selected after conversion?
0

rv1974 
 

Re: [Plugin] Groups to Components

Postby YCL furniture » Wed Aug 21, 2019 2:59 pm

Hello, Thom
maybe have any plugin to convert components to groups? without losing the component name
0

YCL furniture 
 

Re: [Plugin] Groups to Components

Postby Dave R » Wed Aug 21, 2019 3:23 pm

YCL furniture wrote:Hello, Thom
maybe have any plugin to convert components to groups? without losing the component name


Why convert components to groups?
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Groups to Components

Postby YCL furniture » Wed Aug 21, 2019 7:05 pm

Dave R wrote:
YCL furniture wrote:Hello, Thom
maybe have any plugin to convert components to groups? without losing the component name


Why convert components to groups?


Because I design furniture with components. After designing the furniture, I use the ABF solutions plugin to make report list of furniture panels cutting and edges bandings. This plugin only works with groups.
Maybe you know of another plugin that make report list of furniture panels and edges banding?
I made a video where I showed what features I need (https://www.youtube.com/watch?v=85djT5KbnZw)
0

YCL furniture 
 

Re: [Plugin] Groups to Components

Postby Dave R » Wed Aug 21, 2019 7:09 pm

You are using SketchUp 2016 Make for your business?

There are numerous cutlist extensions that work with components.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Groups to Components

Postby YCL furniture » Thu Aug 22, 2019 7:21 pm

Dave R wrote:You are using SketchUp 2016 Make for your business?

There are numerous cutlist extensions that work with components.


There are many extensions that calculate report list of furniture panels cuttings. But none of them count the edges banding
0

YCL furniture 
 

Re: [Plugin] Groups to Components

Postby fortyonethirty » Tue May 12, 2020 6:25 pm

Thanks! :thumb:
0

fortyonethirty 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: phcbritto, x095760 and 10 guests

Visit our sponsors: