Add filter to view

I want to create a view filter that highlights all pipes that have the Comments parameter set to “Yellow”. Not sure why I am getting the error message

What does the error say?

2 Likes

Try to remove “” from string, not sure

4 Likes

Man, can’t you let me just have one? :slight_smile:

4 Likes

hahahah…you are back…Happy new year :wink: :wink:

3 Likes

Happy New Year! … and I bet you are correct.

@tmccar - for information, “string” nodes do not need double quoates, only Code Blocks when used as strings like your parameter name and value.

3 Likes

Warning: ViewFilter.CreateFilter operation failed.
Method not found: ‘Void Autodesk.Revit.DB.ParameterFilterElement.SetRules(System.Collections.Generic.IList`1<Autodesk.Revit.DB.FilterRule>)’.

Hi @tmccar , try this:

3 Likes

That looks good, Matt.
Can you tell me what package has FilterRule.CreateRule and FilterSet.CreateorSet?

All custom nodes that I’ve used are from archilab.

To be confirmed with source code, but this error means this node is not compatible with Revit 2020 and higher

1 Like

I think node only works 2020 and above not the other way around.

Working ok now, thanks

1 Like

Can you share your Graph here?

Hi - which graph are you referring to?

Dynamo Script

I will have a look - not sure if I still have it.

Oh okay, I just realized it is a quite old discussion.
No worries.

Thanks,
ap

I think I’ve found it. Do you want me to send you the file?

better post the code / file here instead for others benefit as well…