[Plugin]Group in Component

[Plugin]Group in Component

Postby sahi » Mon Jun 28, 2010 2:44 pm

The script creates a group component
Menu Plugins >> Group in Component

components.rb


Edit: Changed title to contain tag '[Plugin]'
0
Last edited by sahi on Tue Jun 29, 2010 8:42 am, edited 2 times in total.

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby Chris Fullmer » Mon Jun 28, 2010 6:21 pm

Hi Sahi, I'm not quite sure what you mean. It turns groups into components? Or changes components into groups? Or something entirely different?

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin]Group in Component

Postby sahi » Mon Jun 28, 2010 7:15 pm

Group changes in the components.
If the group does something similar to the one component
0

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby thomthom » Mon Jun 28, 2010 7:31 pm

Looking at the code and I still don't understand what this does.
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]Group in Component

Postby sahi » Mon Jun 28, 2010 7:38 pm

thomthom wrote:Looking at the code and I still don't understand what this does.

1.selection Group
2. Translates into a component group
3. It scans all the remaining groups
4 If there are the same then replaces them with this component.
0

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby CadFather » Mon Jun 28, 2010 10:25 pm

guess it's like the one in thom's selection tools - turn groups in components.. amazing what a couple a semantic turn can do..
0
Quarr-IT - SketchUp Training from the Master.. http://quarr-it.com/
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby thomthom » Mon Jun 28, 2010 10:52 pm

I'm not sure if it is quite the same. It does some comparisons of edge lengths...
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]Group in Component

Postby sahi » Mon Jun 28, 2010 11:04 pm

thomthom wrote:I'm not sure if it is quite the same. It does some comparisons of edge lengths...

Yes.
Сreate an array of them, sort, compare. (Compare the array and not the length)

In the plugin still has bugs.

Here's a version of the plug

updated in first post
0
Last edited by sahi on Tue Jun 29, 2010 8:44 am, edited 1 time in total.

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby thomthom » Tue Jun 29, 2010 8:25 am

If that is an update, could you update the first post please?
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]Group in Component

Postby rv1974 » Tue Jun 29, 2010 9:54 am

@sahi
MGIMO finished? (:
0

rv1974 
 

Re: [Plugin]Group in Component

Postby sahi » Tue Jun 29, 2010 10:11 am

rv1974 wrote:@sahi
MGIMO finished? (:

0

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby putnik » Wed Jun 30, 2010 6:09 am

sahi,

напиши по русски, что плагин делает, я переведу. не особо понятно.
0

putnik 
 

Re: [Plugin]Group in Component

Postby sahi » Wed Jun 30, 2010 8:19 am

putnik wrote:sahi,
напиши по русски, что плагин делает, я переведу. не особо понятно.

Скрипт переводит группы в компоненты. одинаковые группы заменяет на один компонент.
Вот для примера файл: смотрим статистику
Pech_SU5.zip

Состоит из групп, размером 756 кб, групп 155
Выделяем все и применяем скрипт.
Размер файла уменьшается на 500 кб

PS: Скрипт ещё не закончен, ему не хватает точности, но все же довольно таки не плохо работает.
0

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin]Group in Component

Postby rv1974 » Wed Jun 30, 2010 9:47 am

чем он отличается от уже сушествуюшего?
0

rv1974 
 

Re: [Plugin]Group in Component

Postby Chris Fullmer » Wed Jun 30, 2010 4:06 pm

Any explanation what this most recent file is? Thanks!
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin]Group in Component

Postby thomthom » Wed Jun 30, 2010 4:10 pm

From Google Translate:
The script takes the group into components. The same group replaces one component.
Here's an example file: look at the statistics

Pech_SU5.zip
(290.92 KiB) Not downloaded yet


Consists of a group size of 756 kb, 155 groups
Select all and apply the script.
File size reduced to 500 kb

PS: The script is not finished yet, it lacks precision, but rather did not not work.
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]Group in Component

Postby chri » Wed Dec 24, 2014 7:18 pm

hi Sahi

you have done a great job :thumb: :thumb:

seems to work with SKECHUP 8 and 2013
Doesn't work with SKETCHUP 6 2014 2015

Thanks again
Chri
0
User avatar
chri 
 

Re: [Plugin]Group in Component

Postby glro » Thu Dec 25, 2014 2:04 pm

chri wrote:hi Sahi

you have done a great job :thumb: :thumb:

seems to work with SKECHUP 8 and 2013
Doesn't work with SKETCHUP 6 2014 2015

Thanks again
Chri


i wish i could get the same result on my computer

i only get an error message

2014-12-25 13_50_09-Sans titre - SketchUp Pro.png
0

glro 
 

Re: [Plugin]Group in Component

Postby chri » Thu Dec 25, 2014 4:06 pm

Hi

in english
You will find here , my system and my plugin file if it can help you .

en français
Bonjour
Trouves ci-joint des images de ma configuration et le fichier ruby correspondant a notre sujet .

Salutations

Chri
0
User avatar
chri 
 

Re: [Plugin]Group in Component

Postby glro » Thu Dec 25, 2014 7:19 pm

chri wrote:Hi

in english
You will find here , my system and my plugin file if it can help you .

en français
Bonjour
Trouves ci-joint des images de ma configuration et le fichier ruby correspondant a notre sujet .

Salutations

Chri


Thank you !

i don't know why, but with the file you put in line, i don't get the error message

it worked also on my computer: the plugin makes components out of groups if they are square boxes

From the test i made, the square boxes must have been made into a group and then duplicated, before the plugin is used; otherwise the plugin doesn't recognize them as identical and makes 2 different components

it could be possible maybe to make it work for other types of groups; by checking the distance between the corners of the bounding box, for example

i shall try
0

glro 
 

Re: [Plugin]Group in Component

Postby chri » Thu Dec 25, 2014 8:43 pm

Hi Giro

I agree with you , when you tell "... must have been made into a group and then duplicated, before the plugin is used "
... but, i don't understand the meaning of "square boxes" and "other types of groups"

for me, there are only 2 possibilty; a group and non-grouped entities!

Sincerely
Chri
0
User avatar
chri 
 

Re: [Plugin]Group in Component

Postby glro » Fri Dec 26, 2014 4:03 pm

chri wrote:Hi Giro

I agree with you , when you tell "... must have been made into a group and then duplicated, before the plugin is used "
... but, i don't understand the meaning of "square boxes" and "other types of groups"

for me, there are only 2 possibilty; a group and non-grouped entities!

Sincerely
Chri


you are right

i mixed the 2 condition, but only one is true: ""... must have been made into a group and then duplicated, before the plugin is used "

this is very limitating, though

I was planning to use this plugin on a sketchup model imported from solidworks using SIMLAB converter

SIMLAB converts components into groups, and i was planning to use "components.rb" to convert them back to components

it doesn't work; i shall try to tweak the plugin to make it work, using the position of the bounding box corners
0

glro 
 

Re: [Plugin]Group in Component

Postby chri » Fri Dec 26, 2014 7:58 pm

Hi Giro

I have made a test with parts imported from STEP files ( using Moment Of Inspiration ).

I noticed that when parts contains a lots of entities , it's common to have small differences after import

Perhaps , you have this kind of problem with your file .
... so , the plugin cound not recognize almost similar components .

Chri
0
User avatar
chri 
 

Re: [Plugin]Group in Component

Postby glro » Sun Dec 28, 2014 10:18 am

chri wrote:Hi Giro

I have made a test with parts imported from STEP files ( using Moment Of Inspiration ).

I noticed that when parts contains a lots of entities , it's common to have small differences after import

Perhaps , you have this kind of problem with your file .
... so , the plugin cound not recognize almost similar components .

Chri


interesting
It might be an explanation, but not in any case

i make a cube, grouping the faces
i duplicate it
i launch the plugin: they are both turned into instances of the same component

now, i explode them
turn again each one of them into a group
and finally i launch the plugin: they are turned into instances of 2 different components
0

glro 
 

Re: [Plugin]Group in Component

Postby pilou » Wed Jan 14, 2015 11:29 pm

Hello
Here a little trick that can help you ;)
The use of the cool plugin by Thomthom Components Comparison :enlight:

As there are not yet system of instancied Objects / Group in Moi3D for export to Sketchup we must make a little tricky thing! :)

Say I have 2 Objects (here a cube duplicated) in Moi3D, I export them in 3DS Format
Import in Sketchup / Explode one time
so we have 2 Components triangulated named OBJ1, OBJ2
Launch the Components Comparaison and Bingo we have now instancied Components! :fro:
Triangulation can be cleaned by plugin Clean Up by Thomthom again!



Result will be the same with 2 different cubes but with the sames dimensions! ;)


With more complex objects there is something more to make!
That is failing or one object is rotated!
Failed ? :o

Rotated ? :o


For resolve this you must just find the good tolerance inside the Thomthom pluging! Don't hesitate to push it! :ugeek:

Of course many object can be treated in the same time as Shown in this Chri's Video! ;)
The start Moi3D objects (fixed image)


Process in Sketchup! :geek:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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 5 guests

Visit our sponsors: