Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

How do I solve the number of array become one?

5 ANTWORTEN 5
GELÖST
Antworten
Nachricht 1 von 6
Anonymous
2874 Aufrufe, 5 Antworten

How do I solve the number of array become one?

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,

Tags (1)
5 ANTWORTEN 5
Nachricht 2 von 6
barthbradley
als Antwort auf: Anonymous

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. 

Nachricht 3 von 6
Anonymous
als Antwort auf: barthbradley

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,

Nachricht 4 von 6
barthbradley
als Antwort auf: Anonymous

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? 

Nachricht 5 von 6
Anonymous
als Antwort auf: barthbradley

Ohhh, I get it!

 

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

 

Thank you so much!!

Nachricht 6 von 6
ToanDN
als Antwort auf: Anonymous

@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.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report