1.PostableCommand Enumeration
Enumerates all built-in commands that an API application can issue.
2.FilterDialog Class
Allows display of dialogs for creating and editing FilterElements in Autodesk Revit.
In Revit, you can add a filter function to the view. This filter has a relatively complete interface, and you can add various filters.
This interface can also be called in the API , which provides a lot of convenience for creating filters for the API.
Here is a simple example,
Use this FilterDialog to add a filter to the current view:
Document doc = commandData.Application.ActiveUIDocument.Document;
FilterDialog myDialog = new FilterDialog(doc, "test");
myDialog.Show();
ElementId filterId = myDialog.NewFilterId;
View v = doc.ActiveView;
Transaction trans = new Transaction(doc, "test");
trans.Start();
v.AddFilter(filterId);
trans.Commit();
3.FilterCategoryRule Class
A filter rule that matches elements in a set of categories
4.FamilyElementVisibility
Provides a set of properties to control whether the element is displayed in the specified detail level or view. These properties are as follows:
IsShownInCoarse: whether to show in the "coarse" detail layer (only for project documents); IsShownInMedium: whether to show in the "medium" detail layer
(only for project documents);
project documents only);
IsShownInFrontBack: whether to display in the "front/back" view (only project documents);
IsShownInLeftRight whether to display in the "left/right" view (only project documents);
IsShownInTopBottom: whether to display " view (only for project documents);
IsShownInPlanRCPCut: whether to display when it is cut in Plan/RCP (if its category allows);
IsShownOnlyWhenCut: whether to display only when it is cut;
VisibilityType: FamilyElementVisibilityType enumeration Value
- Model: only displayed in the 3D view;
- ViewSpecific: only displayed in the creation view, generally used for detail components, annotations, and imports for views