How do I solve the number of array become one?

How do I solve the number of array become one?

Anonymous
Not applicable
3,626 Views
5 Replies
Message 1 of 6

How do I solve the number of array become one?

Anonymous
Not applicable

How do I solve the number of array become one?

 

I do [Array] in family, and set the number changed with family's length in formula.

But when the number become one, it gets error.

image.png

image.png


How do I solve this?

I made switch, but it wasn't solved.
(I tried to made array object unvisible, and set extra family to fill the narrow length)

image.png

 

 


Please excuse my poor English,
If you have any trouble understanding my English, please feel free to ask so I can clarify as best as I can.

Any assistance would be greatly appreciated,

0 Likes
Accepted solutions (1)
3,627 Views
5 Replies
Replies (5)
Message 2 of 6

barthbradley
Consultant
Consultant

You can't have an array with less than 2. A workaround would be to create 2 elements in the same place (overlapping); one for no array and the second for the array. Apply a visibility parameter to both, and use a formula to to toggle visibility on and off, depending on whether you need the array visible or just a single. 

Message 3 of 6

Anonymous
Not applicable

Thank you for your quick reply, @barthbradley

 

I applied a visibility parameter to the array and use a formula.
The formula worked and visibility turned off, but the error still appear.

image.png


How do I solve this error message?

 

Regards,

0 Likes
Message 4 of 6

barthbradley
Consultant
Consultant
Accepted solution

Like I said: the Array count cannot be 1. It has to be 2 at least. So, you need another count parameter for the Array that is defaulted to 2 when the Array is invisible.  It can set up to be automatic, based on the "count" value. For instance: Array count parameter formula reads if(count>1, count, 2). 

 

...the Error is referencing the count parameter, not the onoff parameter. You see that; right? 

Message 5 of 6

Anonymous
Not applicable

Ohhh, I get it!

 

>Array count parameter formula reads if(count>1, count, 2)
I didn't realize this!

 

Thank you so much!!

0 Likes
Message 6 of 6

ToanDN
Consultant
Consultant

@barthbradley is spot on.

 

See the screenshots below for example how the array or the single piece got turned on/off based on the length.

 

Capture.PNGCapture1.PNG

Array and formulas are fun and all but there cases it's just more flexible arraying one piece directly in project environment.  I am not too clear what you are drawing but you can also use adaptive families with divided path in lieu of array.

0 Likes