BIM World
A Professional BIM Learning Platform


BIM Q&A | Has the Rule-Based Filter in Revit Been Tested?

BIM Q&A | Is the Rule-Based Filter in Revit Being Tested?


In Revit, you can add filters to views to manage visibility and graphical overrides effectively.

The filtering interface is well-developed, allowing users to create and customize various filters with ease.

Moreover, this interface is accessible via the API, enabling developers to programmatically create and apply filters.

This functionality greatly enhances workflow efficiency.

For more details, please refer to the FilterDialog documentation.

Here is a simple example demonstrating how to add a filter to the current view using the FilterDialog:

Document doc = commandData.Application.ActiveUIDocument.Document;

FilterDialog myDialog = new FilterDialog(doc, "test");

myDialog.Show();

ElementId filterId = myDialog.NewFiltered;

View v = doc.ActiveView;

Transaction trans = new Transaction(doc, "test");

trans.Start();

v.AddFilter(filterId);

trans.Commit();

xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » BIM Q&A | Has the Rule-Based Filter in Revit Been Tested?

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up