Cannot add a parameter to view filter

Cannot add a parameter to view filter

mante1991
Participant Participant
1,375 Views
11 Replies
Message 1 of 12

Cannot add a parameter to view filter

mante1991
Participant
Participant

Hello everyone,

 

In a model I am currently working on, I tried to create a view filter that would include a parameter called "BarSupInf". The parameter was assigned to the detail items as a family parameter and was visible in their properties (see  attached Screenshot_1 ). When i tried to create the filter, I noticed that this parameter was not  given as an option for the detail items. I looked it up and realised that I should have added the parameter as a project parameter in order to use it in the view filters, not as a family parameter. Then I tried to add "BarSupInf" as a project parameter (without deleting the first family parameter), but I ended up with two "BarSupInf"s in the properties tab of the detail items (see attached Screenshot_2). The problem is that I have already added values in the first family parameter of many detail items and I don't want to lose them. Is there a way to "connect" the first family parameter to a project parameter and  create the view filter, without losing the values that I have already added?

0 Likes
1,376 Views
11 Replies
Replies (11)
Message 2 of 12

barthbradley
Consultant
Consultant

So, it sounds like you loaded 2 Shared Parameters (by way of Family or Project Parameter) that are named the same NAME, but originate from different Shared Parameter Text Files. Am I warm? 

 

FWIW...it almost sounds like you may not be aware that Shared Parameters are shared because they have the same GUID. Naming has nothing to do with it.  Shared Parameters originate from the exact same Shared Parameter Text File. 

0 Likes
Message 3 of 12

SteveKStafford
Mentor
Mentor

It sounds to me like a shared parameter (SP) was not used. A family parameter was created in the family and then a project parameter was created.

 

To get this to work you need to start with a SP file and create a SP. Then use that SP to define the parameter in the family. Create your project parameter using the same SP. Then Revit will connect the dots.

 

Think of the Shared Parameter file as a dictionary where you store common definitions for parameters you will use. When you create parameters in families and projects you can point Revit to the dictionary and the family and/or project pulls the parameter definition into the file. Revit uses a GUID (globally unique ID) stored in the definition to recognize the parameters it sees as the same definition when the family and project interact with each other.


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

0 Likes
Message 4 of 12

ToanDN
Consultant
Consultant

Only parameters added to project parameters can be used in view filters.  Parameters added in families cannot.

0 Likes
Message 5 of 12

mante1991
Participant
Participant

Yes, you got it right, I didn't create the parameter in the family as a shared parameter, but as a family parameter.
If I get your suggestion right, I have to define my parameters (family + project) from scratch in order to use the SP file. But I will lose all the values that I have already added to the first family parameter, am I correct? Is there no way to avoid it?

0 Likes
Message 6 of 12

barthbradley
Consultant
Consultant

You could create a Shared Parameter and populate it with another Family Parameter's value.  

 

Example:

 

Existing Family Text Parameter named My ID has a value of  "ABC"

New Shared Text Parameter named My ID 2 has a formula "=My ID".  It's value will be "ABC".     

 

...just for what it's worth, you can also make a Instance Family Parameter - that isn't driving any dimension in the Family -  a Reporting Parameter.  

 

Reporting Parameter9.png

0 Likes
Message 7 of 12

azad.Nanva
Advisor
Advisor

I don't see your attached screenshot!!

If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 8 of 12

mante1991
Participant
Participant

Here are my missing screnshots..

Message 9 of 12

mante1991
Participant
Participant


I tried your suggestion, but it didn't work. Just to make sure that I am not missing anything, here is what I did:

 

1) I already have a family parameter called MyID in my family. I created a new Shared Parameter in my SP file called MyID_shared. I added it to the properties of the family and assigned to it the formula "=MyID".

 

Screenshot_3.png

2) I created a project parameter MyID_shared in my project using the same SP file that I used in my previous step.

 

3) I created a view filter with the  rule displayed below. Then, I created two detail items, the first one with MyID = "u", the second one with no value assigned. The first detail item should be magenta and the second one should be black, am I right? They are both magenta... Why?

Screenshot_4.png

0 Likes
Message 10 of 12

azad.Nanva
Advisor
Advisor

I want to be clear on my understanding, your MyId_Shared is the shared parameter and in project you define the new project parameter from the MyId_Shared as the below :

 

MyId_Shared:

 

azadNanva_0-1725525497637.png

 

and in the project you use the exactly same shared parameter: (in my case is the View Test) :

 

azadNanva_1-1725525743131.png

 

azadNanva_2-1725525927797.png

 

and in the end:

 

If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 11 of 12

mante1991
Participant
Participant

I think that your example misses the fact that there was already a family parameter MyID in the family that I didn't want to lose , therefore the new shared parameter MyID_shared in the family was created with the formula "=MyID". This is described in step 1 in my previous post. When the family parameter is not involved, everything works fine, indeed. Could you reproduce the case with the family parameter included?

 

Screenshot_3.png

0 Likes
Message 12 of 12

azad.Nanva
Advisor
Advisor

that was over MyId_Shared the second parameter if you make it well then you can add any formula to it.

 

like MyId_Shared=MyId or what do you want.

If it solves your problem, please click Accept to enhance the Forum.
0 Likes