Settings
Description:
The settings object provides access to general components of the Autodesk Revit application, such as Categories.
The settings object provides access to general components of the Autodesk Revit application, such as Categories.
// Get some of the settings information, including categories and FillPatterns
Settings settings = document.Settings;
// Format the prompt information string
String prompt = "Setting information: ";
prompt += "\nNumber of Categories: " + settings.Categories.Size;
FilteredElementCollector fillPatternCollector = new FilteredElementCollector(document);
prompt += "\nNumber of Fill Patterns: " + fillPatternCollector.OfClass(typeof(FillPatternElement)).Count();
FilteredElementCollector linePatternCollector = new FilteredElementCollector(document);
prompt += "\nNumber of Line Patterns: " + linePatternCollector.OfClass(typeof(LinePatternElement)).Count();
// Give the user some information
TaskDialog.Show("Revit",prompt);
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Categories | Categories | Retrieves an object that provides access to all the categories contained in the Autodesk Revit application and project. | |
| ElectricalSetting | ElectricalSetting | Retrieves an object that provides access to all the electrical settings include voltage type, distribution system type, demand factor, wire type in the Autodesk Revit application and project. | |
| TilePatterns | TilePatterns | Retrieves an object that provides access to the TilePattern objects in the document. | |
| IsReadOnly | bool | Identifies if the object is read-only or modifiable. | APIObject |