Creating view filters for some parameters is impossible

m.vallee
Advocate

Creating view filters for some parameters is impossible

m.vallee
Advocate
Advocate

Hi,

 

I want to create view filters for walls depending on some criteria like :

  • their phase (BuiltInParameter.PHASE_CREATED)
  • their location line (BuiltInParameter.WALL_KEY_REF_PARAM)
  • the level their are attached to

All these parameters are not available in the UI when a user wants to create a new rule-based filter.

Could you please confirm to me it is not possible through the API ? When I try, it fails saying: “One of the given rules refers to a parameter that does not apply to this filter’s categories.

Parameter name: rules”

 

Why are some parameters available/not available for view filtering ?

 

Do you think I could use selection-based filters instead, as it is possible with the UI ?

 

Thanks for your help.

 

0 Likes
Reply
1,840 Views
11 Replies
Replies (11)

m.vallee
Advocate
Advocate

The issue is it seems impossible to make view filters using instance parameters. You can just use type parameters...

 

Is anyone else facing this ?

0 Likes

JimJia
Alumni
Alumni
Dear Maxime Vallée,

You can use Revit API ParameterFilterElement.AllRuleParametersApplicable(Document, ICollection<ElementId>, IList<FilterRule>) or ParameterFilterElement.AllRuleParametersApplicable(IList<FilterRule>) to check if parameter is applicable for element filter. However, the parameter application of Revit API will be same with Revit UI.

Regarding why your mentioned parameters are not supported, we already create Revit issue CF-4592 to track your request.

Thanks for your understand and support.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes

JimJia
Alumni
Alumni

Dear Maxime Vallée,

 

No, the view filter can use instance parameters definitely; the problem you're facing is some special parameters are not supported; we already create Revit issue CF-4592 to track this.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes

m.vallee
Advocate
Advocate
Hi Jim,

Thank you for your answer.

Please keep me informed when Revit issue CF-4592 is solved.

Best regards.

Maxime

Maxime Vallée



Informatique Technique Bouygues Entreprise France - Europe


'

+33 (0)2 78 62 40 84 -

[http://nomades.bouygues-construction.com/logos/logoSignatureBycn/bycn_logo_cellphone.jpg]

+33 (0)6 99 16 61 79

*

m.vallee@bouygues-construction.com




Le Marco Polo - 4, rue Saint Eloi - CS 41139

76175 Rouen




[http://nomades.bouygues-construction.com/logos/logoSignatureBycn/bycn_logo_byefe_bycnentfreurope.jpg]

[http://nomades.bouygues-construction.com/logos/logoSignatureBycn/bycn_signature_fr.jpg]





P Pensez à l'environnement. N'imprimez ce mail que si nécessaire.




--
Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. If you are not the right addressee, we ask you not to read, copy, use or disclose this communication. Please notify this error to the sender and erase at once this communication from your system.
0 Likes

ssw9UZNL
Advocate
Advocate

Hello,

 

Has this been resoloved.

 

I have made some shared parameters for a family within my project (as instance based) and I can not seem to use this to make a filter within dynamo- I am getting the same error message coming back.

 

Sam

0 Likes

iuliia.shchuklina
Community Visitor
Community Visitor

Hi everybody

Is it resolved?

 

0 Likes

jeremy_tammik
Autodesk
Autodesk

Thank you for your updates and patience with this.

 

I am sorry to say that it has not yet been addressed by the development team.

 

I added a note to the development ticket CF-4592 [Creating view filters for some parameters is impossible -- 11852081] to make the development team aware of its importance for you and raise its priority.

 

You can add further emphasis to this effort by submitting a business case for it:

 

This issue is important to me. What can I do to help?

 

This issue needs to be assessed by our engineering team and prioritised against all other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:

 

  • Impact on your application and/or your development.
  • The number of users affected.
  • The potential revenue impact to you.
  • The potential revenue impact to Autodesk.
  • Realistic timescale over which a fix would help you.
  • In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.

 

This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

filip.kabelis
Enthusiast
Enthusiast

so anything new?

0 Likes

jeremy_tammik
Autodesk
Autodesk

I asked for an update on CF-4592 for you.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

betEDURD
Explorer
Explorer

Hi,

 

We have a similar issue here, when creating a filter for OST_ElectricalFixtures and OST_GenericModel works just fine, but it does not for OST_StructuralFoundation and OST_StructuralFraming.

We have a lot of different projects that need to have such filters.

Though it does not take up a huge amount of time to do it by hand, we cannot integrate it in our automation add-ins.

We have around 20 persons impacted by this.

That is all the information I can give you, sorry if it is a bit light.

 

Best regards,

Quentin

0 Likes

steven.williams.as
Enthusiast
Enthusiast

I came across this issue today and would also like a solution. My use case is filtering by Fabrication Part Service Abbreviation (BuiltInParameter.FABRICATION_SERVICE_ABBREVIATION). This parameter is not available for MEP Fabrication Parts category, but both BuiltInParameter.FABRICATION_SERVICE_PARAM and BuiltInParameter.FABRICATION_SERVICE_NAME are. This is odd. It is also frustrating, because only BuiltInParameter.FABRICATION_SERVICE_ABBREVIATION is available for IndependentTag families. So I can tag pipes with their service abbreviation (and not their service name), but I cannot make a view filter and color those pipes in Visibility/Graphics Overrides by their service abbreviation.

0 Likes