I’m keen to learn whether I can automate part of my workflow, although I currently know nothing about programming SketchUp (although I have a working knowledge of Microsoft VBA)’
I use SketchUp to model glass structures ending up with a bunch of bespoke Groups which represent the double glazed units. Before I detail the units in Layout I need to convert each Group into 3 separate Groups usually comprising an inner pane, an outer pane and a spacer bar. Each Group will have the same profile although glass and spacer bar thicknesses can vary.
My current manual process is pretty repetitive. Push/Pull to 6mm & save as 6mm Inner. Move/Copy as required, extrude to 10mm, save new Group as 10mm Outer. Trace the perimeter, offset to 13mm (spacer bar depth) delete inner surface, extrude to 18mm, save Group as Spacer Bar & position as necessary.
I would appreciate being pointed in the right direction if its possible to automate this process.
I understood what you want, I just offered you a simpler method that can be applied with existing extensions, until you find a programmer to write the plugin you want.
The starting point is a surface or a simple group with the required profile (rather than a unit to stretch) so I guess my best bet is to study Dynamic Components?
You will be able to use DCs in V2023, you created in V2022 (or earlier).
I guess, even DCs created in V2023, you can use back in v2021 version, because the skp file is backward and forward “compatible” since V2021.
Just thinking aloud - is it possible to have a DC which is based on a variable profile. As you can see from the above photo most of the units are different (every roof unit is different) so I need to be able to create a component with the same section details but starting from an infinite number of unit shapes?
It’s been a while since I dealt with DC. It’s relatively easy for rectangular windows, but triangular (or polygonal) shapes are more complicated… I’m not sure how (if) it can be done.
Ask your question in that (Dynamic Components - SketchUp Community) category of the forum… in details ( the best if you put an example .skp model of the desired kind of components or assembly of groups)
You (or I) can move this topic to that category if you want to…
But for some reason that I can’t figure out the variable for positioning the Inner Pane converts (maybe to inches and/or cm) under any configuration of settings I can find.
If you have to make lots of these I would be exploring Profile Builder 2, its a commercial extension but it can be used to build assemblies of components. I wouldn’t be surprised if you could knock up a whole conservatory with a few clicks.
@pcmoor is the DC guru - been helping me get back into DC’s with my crumbling brain…
From what I understand
DC’s are quirky, particularly if you are working in metric as it was built around inches as the base unit.
Also note that you cannot create objects - only manipulate or duplicate them… so multiple geometric shapes are more problematic… you need to have separate DC’s for them or embed them all in a single DC and hide or show them as needed … which is not very efficient, complex and no very intuitive.
Nevertheless - I find them despite all their quirks more intuitive to build than that spaghetti mess of nodes and connectors in Live Components. “Cant teach an old dog new tricks”
Advantages are you essential built your assembly first, then organise it and manipulate it with the DC attributes as needed and provide any user with an interface that describes the assembly with a friendly input interface without out them having to understand the sketchup mechanics of how it is built.