Redraw groups
-
Is there a way to redraw all the groups in a file? I can do this individually by adding onclick REDRAW function to every group, but this is to time consuming.
-
Not sure what you mean by "redraw" groups. Aren't groups single instance entities? If you redraw (edit) one, other groups are not changed. For that you need components. I do not know if SketchUp provides a way to change all similar groups into a component. Maybe someone can link you to a plugin if you post for help in the plugin forum.
-
Is this a dynamic component issue ?
If so why isn't it in that forum ?? -
I'm assigning attributes to groups instead of components and need a way to redraw a bunch of groups to refresh all the attributes data.
-
Why do you need to 'redraw' groups ?
A group's attributes are its attributes ??
If its attributes change with the group's 'properties' - e.g. it's location - then you need to think about using observers attached to the group, to watch for changes and update attributes as they might be altered...
Although many of these can be got later from the group as it is rather than some 'attribute' ???
I'm not exactly sure what you end game is .............. -
-
Your illustration shows you have groups that think they are dynamic-components ?
Why is this ?
What is the advantage to you ?
Clearly nothing - since it messes up the DC's 'redraw'...
This line of code will redraw a selected DC instance$dc_observers.get_latest_class.redraw_with_undo(Sketchup.active_model.selection[0])
You get an error message if the selected object is NOT a DC instance...
I suspect that a 'group' might also fail because the entities are accessed differently in a group / group's definition than in an instance's definition, and the 'redraw' code is expecting a component.
Why not just select the group, right-click context-menu > 'Make Component', to avoid this aberration ? -
I have had a lot of problems with components messing around, renaming randomly and not allow me to have the same names for different components.Components are not very convenient when You have huge library with the same components in different hierarchy levels and try to mix them in a single project, make copies and etc.So far groups are working flawlessly except redrawing - so I will continue adding onclick redraw to each group. Thanks.
Advertisement