DC with OnClick function makes copies of itself

Hello guys! I created a dynamic component and rotate it onclick. The problem is - when I do Onclick it copies of itself.

Fo example - If I copy 4 the same pillars by Copy-Paste - here is no problem, If I rotate each by OnClick - I’ll have 4 copies on the component (Component#1, …#2 etc.)

2022 version: Pillars.skp (88.9 KB)
Video of the problem:

the same sh…t

have you found any solution?

oops, looks I chat with myself

When a DC has a DC child it will always become unique on redraw.
To maintain a DC which is used as such, the children should be normal components, all calculations and reports in the parent
Pillars (3).skp (69.6 KB)
this is a rough fix, the size of parent is not in sync with children

Rather than trying to keep the definition, you could allow the #numbers and report using the instance name,

Need more information on what reports, layout data, you want, are you wanting to use report generator or some other like OCL?

thanks, but seems I do not understand what a child DС is. :face_with_peeking_eye:

for reports I use OCL.

What changes have you made? I can’t see any difference.:eyes: but your version works correct

components or groups can be arranged as a hierarchy, one in another with others by side

The top or level above is the parent, you can use the generic parent! to reference its attributes in a lower level, children and siblings are terms to signify a relation to a parent. The parent! allows the use of swapped DCs or instance name changes.

OCL does not report groups, so can use these as sections to a component, like a top that is fixed and a scalable bottom.
OCL reports visible geometry, so components can be hidden from view and report
OCL can report the “Name” attribute, so this can be used as a data feed to be interpreted by the ruby scripting of the export report

The current Pillers DC is out of sync, needs to be reworked

The extension Eneroth De-DC-ify | SketchUp Extension Warehouse can be used to simplify a DC, the parent value attributes remain as well as position, rotation, and info
Before copying, if you De-DC-ify you can stop the # numbers, uniqueness.
Any DC can be swapped with its saved definition and all the options will be reinstated
You can employ the current formula in a saved DC to swap and update with other DCs with corresponding attributes

Try the De-DC-ify

thank you !