Array value at 1

Array value at 1

Kev_D
Collaborator Collaborator
11,784 Views
13 Replies
Message 1 of 14

Array value at 1

Kev_D
Collaborator
Collaborator

I have followed a number of posts to try and create an array value at 1. I am still getting an error. I even created a blank family with an extrusion as an array and followed the same procedure (as I thought there may be an issue with my main family), but this produces the same error. 

Test family attached.

Any ideas what I am doing wrong?

0 Likes
Accepted solutions (1)
11,785 Views
13 Replies
Replies (13)
Message 2 of 14

barthbradley
Consultant
Consultant

An array can't be less than 2. If you need a 1 condition, then have a single element controlled by a visibility parameter that will turn off when there is more than 1 displayed (e.g. =count>1). 

Message 3 of 14

Kev_D
Collaborator
Collaborator

I understand that, but a few forums have highlighted a workaround with visibility parameters and an 'if' statement.

see screenshot below from one forum.

Capture.JPGanother post: http://malleristicrevitation.blogspot.ca/2007/04/arrays-less-than-2.html

Message 4 of 14

barthbradley
Consultant
Consultant
Accepted solution

That's pretty much exactly what I just said. 

 

Array Number: if(Array Total < 2, 2, Array Total)

Array Number should drive the Array, not Array Total. 

Message 5 of 14

Kev_D
Collaborator
Collaborator

But that is what I am saying, I followed these but it still doesn't work. That is why I posted the test family with those parameters and formulas assigned.

0 Likes
Message 6 of 14

barthbradley
Consultant
Consultant

Did you see my edit above? Those 2 changes will solve. 

0 Likes
Message 7 of 14

Kev_D
Collaborator
Collaborator

Thank you 

Message 8 of 14

pieter7
Advisor
Advisor
Message 9 of 14

Kev_D
Collaborator
Collaborator

Yes, I have voted for this already. It would be a great addition.

0 Likes
Message 10 of 14

sksaifali99
Contributor
Contributor

ARRAY-0-ANY NUMBER.JPG

YOU MAY USE THE SAME FORMULA. PUT ANY NUMBER IN A_I STARTING FROM 0.

 

1.USE THE NESTED FAMILY FOR THE ITEM YOU WANT TO MAKE AN ARRAY.

2.PLACE THE SAME ITEM TWICE IN THE SAME PLACE.

3.CHANGE THE VISIBILITY OF THAT TWO NESTED FAMILIES. VISIBILITY OF TWO PARAMETERS WILL BE Array1 & Array2.

4.CREATE ARRAY PARAMETER(Array) OF THE ITEM WITH Array2 VISIBILITY.

5.CREATE A PARAMETER WHICH HOLD INTEGER VALUES ONLY. i.e. A_I.

5.USE THE SAME FORMULA GIVEN IN THE SNAP.

6.LOAD THE FAMILY INTO THE PROJECT AND PUT VALUES TO A_I.

Message 11 of 14

d.volo
Participant
Participant

Hi,

 

without knowing about this tread, I created a family that works exactly in this way 😁.

The family works great with out any problems.

But I have a problem of volume calculation, I try to explain better.

 

my family has 2 fix parts and one array part.

the fix parts are always visible, so there is no problem about this.

the problem come with the array:

cause I need that the array can count 0, 1, 2, n... elements. I create a conditional visibility for the parts.

 

There are an array for minimal counting of 2, when counting is less of 2 this array is not visible

when the counting for array is equal to 1 there is a single instance visible.

when the counting is 0 both the array and the single instance are not visible.

 

the problem in volume calculation come in the schedule when  I load the family in a project, The volume cont the anyway the parts that are not visible. refer to the image

 

any Idea to solve this problem.

 

thanks in advance

Ciao

 

family_array.JPG

 


@sksaifali99 wrote:


ARRAY-0-ANY NUMBER.JPG

YOU MAY USE THE SAME FORMULA. PUT ANY NUMBER IN A_I STARTING FROM 0.

 

1.USE THE NESTED FAMILY FOR THE ITEM YOU WANT TO MAKE AN ARRAY.

2.PLACE THE SAME ITEM TWICE IN THE SAME PLACE.

3.CHANGE THE VISIBILITY OF THAT TWO NESTED FAMILIES. VISIBILITY OF TWO PARAMETERS WILL BE Array1 & Array2.

4.CREATE ARRAY PARAMETER(Array) OF THE ITEM WITH Array2 VISIBILITY.

5.CREATE A PARAMETER WHICH HOLD INTEGER VALUES ONLY. i.e. A_I.

5.USE THE SAME FORMULA GIVEN IN THE SNAP.

6.LOAD THE FAMILY INTO THE PROJECT AND PUT VALUES TO A_I.


 

ACP Revit Architecture - CAD/BIM Coordinator
0 Likes
Message 12 of 14

crystal.nupsonS8SQU
Explorer
Explorer

if(Array Total < 3, 2, Array Total - 1)

0 Likes
Message 13 of 14

pogue_r
Autodesk
Autodesk

Hi all - we fixed this. In Revit 2025 arrays of 1 and 0 now work in families. I really appreciate the community's help and support in the thread above. Please give the new feature a spin and let us know if you have any trouble or feedback. Thanks for the patience!

Message 14 of 14

Alfredo_Medina
Mentor
Mentor

@pogue_r , great, I will be testing that soon...


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin