Counting the number of components with the same name in the main component

dynamiccomponents

#1

Hello!
Cylinders are copied automatically to a certain distance.
I want to deduce in the description the number of cylinders.
Is it possible to calculate the number of cylinders in the component?


#2

you have almost got the answer, that is copies plus one. So description
=if(Cilinder!copies>=0, Cilinder!copies+1 & " cylinders", “no cylinders”)

.


#3

Yes that’s right, but it’s not for my case :slight_smile:
Perhaps not very clearly explained what exactly is needed. I think so more clearly.


#5

You can’t acces the attributes of Copies in dynamic Components, so you would have to take a different approach…


#6

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