Instance parameter integer list?

Instance parameter integer list?

Anonymous
Not applicable
3,660 Views
14 Replies
Message 1 of 15

Instance parameter integer list?

Anonymous
Not applicable

Is it possible to have a predefined integer "list" (sort of like a lookup table for AutoCAD dynamic blocks)?

 

My current use-case is creating some furniture content for our office template. Some family features I'd like to keep as instance parameters. For instance, on a conference table, the # of power/data banks shown. Except the available options should be 0, 1, 2, or 4. Not negative values, 3, or more than 4. Is this possible? I read a little about Revit lookup tables, but I'm looking to keep this self-contained - no external .csv files.

0 Likes
Accepted solutions (2)
3,661 Views
14 Replies
Replies (14)
Message 2 of 15

barthbradley
Consultant
Consultant

Hard to follow. Can you post a picture or something showing what you are describing?  

0 Likes
Message 3 of 15

martijn_pater
Advisor
Advisor
0 Likes
Message 4 of 15

ToanDN
Consultant
Consultant

If you want to create a dropdown list in a family, use a nested family and a Family Type parameter.

 

ToanDN_0-1607965455710.png

 

https://revitforum.org/showthread.php/18858-Formula-driven-Family-Type-Parameter

 

 

 

Message 5 of 15

Anonymous
Not applicable

Furniture Instance List.png

The "Power Banks 0 1 2 or 4" is my current hack as an integer instance parameter. If the value is greater than 1, it drives an array parameter value for the number of power banks shown.

 

@ToanDNWould your suggestion of a Family Type parameter still apply in this case? The power bank is already a nested family in this conference table family.

0 Likes
Message 6 of 15

martijn_pater
Advisor
Advisor

I think @ToanDN might be onto something there... in terms of having some more or less self-contained nested family options. Seeing as using key schedules is not within the family itself. edit: btw I suppose it'd actually be double nested with the array built in, having the all types/options in one...

0 Likes
Message 7 of 15

ToanDN
Consultant
Consultant

@Anonymous wrote:

Furniture Instance List.png

The "Power Banks 0 1 2 or 4" is my current hack as an integer instance parameter. If the value is greater than 1, it drives an array parameter value for the number of power banks shown.

 

@ToanDNWould your suggestion of a Family Type parameter still apply in this case? The power bank is already a nested family in this conference table family.


Yes.  But using this approach you pre-configure 0, 1, 2, and 4 data port layout in the nested family and use a Family parameter to select those configurations in the table family.  No arraying or formula is to be happening in the furniture family.  If you are not clear then share the furniture family here.

0 Likes
Message 8 of 15

Anonymous
Not applicable

Here's where the family is at so far.

0 Likes
Message 9 of 15

ToanDN
Consultant
Consultant
Accepted solution

See attached.

 

ToanDN_0-1607968368108.png

 

Message 10 of 15

Anonymous
Not applicable

Awesome, let me dig into what you've got here.

0 Likes
Message 11 of 15

ToanDN
Consultant
Consultant
Accepted solution
Message 12 of 15

Anonymous
Not applicable

Ok, so I see you placed multiple instances of the power bank into the banks family. Since this needs to fit into the different layout dimensions in the conference table family, I'm guessing I'll just need to move the layout into the power banks family and tie the dimensions together.

0 Likes
Message 13 of 15

Anonymous
Not applicable

Thanks again @ToanDN this is working nicely. I moved the power banks layout from the table family into its own family. Then changed the table leg and single power bank familes to Generic family type so they don't show up in the Select Power Banks list (since it's a Furniture family type parameter).

0 Likes
Message 14 of 15

Anonymous
Not applicable

I have a similar question to the OP I believe...

 

I have an instance parameter that list multiple integers ('TAP') that a device can support (ex. Value: 1, 5, 30, 75). The TAP amount is associated with a label. Currently, in a plan view I see all 4 TAP options when the item is placed. I have a formula that tells me what the required Tap needs to be based on the devices location, desired values, specs, etc... However the result is an exact measurement, which is never an option (TAP value) for the device, so I have to round up to the nearest 'TAP' value provided by the manufacturer (in this case...1, 5, 30, or 75). for example: the formula comes back with a value of 21.6... How would I create a formula that would select "30" as the devices tap, in turn allowing my label to display 30 on the plan?

 

My thought was using IF with multiple AND/OR conditions... But Revit seems to have its own way of doing that...

 

Any help would be appreciated!

0 Likes
Message 15 of 15

ToanDN
Consultant
Consultant

Do a search on how to use a look up table for your family.