Dynamic Components - Copy not working

Afternoon

Wonder if any of the real gurus can help please?

Im creating a dynamic component which uses multiple copies of the same sub component spaced at standard pitches. When I create the component to copy, the original instances of the component disappear, and only the last instance appears. (not any of the other components copies.)

set up the figures

and when I change instances

any thoughts please?

best wishes

Chris

Upload the SKP file so we can take a look.

1 Like

ROtesters.skp (2.0 MB)

much appreciated

chris

I’ll look at it as soon as I can but in the meantime, examinthe Fence component in the Dynamic Components Training library. Look specifically at how the picket spacing is defined and how that relates to the Picket Fance component. Your box component needs to be nested inside another component container for this to work.

1 Like

Hi Dave

much appreciated.

Ill try nesting - the actual problem I had was on a more complex nested component.

I took away all the confusion and put it on a basic level hence the box. problem was the same in the complex component and the box did (or rather did not !) the same thing. That is show 1 instance (in the number of copies * offset added to the position co ordinate) correctly placed.

I did look at the picket fence, and also there is a simple YouTube box video.

best wishes

What formula do you have in the X-attribute?
You should use something like COPY*”Spacing”

Also, since you are on a Mac, make sure to disable smart quotes in system preferences>Keyboard

1 Like

Hi Mike

Im not sure what you mean with smart quotes?

The formula is <=position+copies*spacing> where spacing is my defined value.

see

much appreciated

Chris

Mike

ok just got the mac setup and disabled smart quotes

best wishes

Chris

As Mike said, you must set the position of each single copy instance of your component “separately”. Your formula puts all the copies in the same place on top of each other. Copies is the total number of copies, Copy returns the “ID number” of each copied component instance, (the original being “0”) so you can base your increment calculation on that.

2 Likes

Yes, like @Anssi explained, copies is just the total number of copies😬
If you use COPY in the formula, each instance number of the individual COPY gets its position.
E.G. The third COPY gets its position


By 573… + 3.0*120 etc

1 Like

Hi both

Got it.

Difference in “copies” and “copy” …,

Much appreciated!!!

Virtual beer in the virtual bar for you both!!!

Best wishes

Chris

1 Like

Now go make an array that has rows and columns…
Or to make it really “interesting”, a circular array. I have never tried.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.