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?
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.
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.
Only parameters added to project parameters can be used in view filters. Parameters added in families cannot.
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?
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.
I don't see your attached screenshot!!
Here are my missing screnshots..
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".
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?
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:
and in the project you use the exactly same shared parameter: (in my case is the View Test) :
and in the end:
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?
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.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.