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: 

Cannot add a parameter to view filter

11 ANTWORTEN 11
Antworten
Nachricht 1 von 12
mante1991
621 Aufrufe, 11 Antworten

Cannot add a parameter to view filter

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?

Beschriftungen (2)
11 ANTWORTEN 11
Nachricht 2 von 12
barthbradley
als Antwort auf: mante1991

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. 

Nachricht 3 von 12
SteveKStafford
als Antwort auf: barthbradley

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

Nachricht 4 von 12
ToanDN
als Antwort auf: mante1991

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

Nachricht 5 von 12
mante1991
als Antwort auf: SteveKStafford

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?

Nachricht 6 von 12
barthbradley
als Antwort auf: mante1991

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

Nachricht 7 von 12
azad.Nanva
als Antwort auf: mante1991

I don't see your attached screenshot!!

If it solves your problem, please click Accept to enhance the Forum.
Nachricht 8 von 12
mante1991
als Antwort auf: azad.Nanva

Here are my missing screnshots..

Nachricht 9 von 12
mante1991
als Antwort auf: barthbradley


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

Nachricht 10 von 12
azad.Nanva
als Antwort auf: mante1991

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.
Nachricht 11 von 12
mante1991
als Antwort auf: azad.Nanva

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

Nachricht 12 von 12
azad.Nanva
als Antwort auf: mante1991

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.

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