Sample Code Revit Batch Processor 1.1.16 documentation
Get all project parameters in the document.
doc (Autodesk.Revit.DB.Document) – Current Revit document
Dictionary where key is the id of the parameter and values are a list of [name, guid]
dict
Analyze a single rule and return a view filter rule object.
doc (Document) – The Revit document.
rule (FilterRule) – The rule to analyze.
is_inversed (bool) – Whether the rule is inversed.
nesting_level (int) – The nesting level of the rule.
debug (bool) – Whether to print debug information.
A result object containing the view filter rule. If an error occurs, the result object will indicate failure and contain an error message.
Analyze an element parameter filter and return a list of view filter rules.
doc (Document) – The Revit document.
element_parameter_filter (ElementParameterFilter) – The element parameter filter to analyze.
nesting_level (int) – The nesting level of the filter.
debug (bool) – Whether to print debug information.
A result object containing a list of view filter rules. If an error occurs, the result object will indicate failure and contain an error message.
Analyze a logical filter and return a view filter logic container.
doc (Document) – The Revit document.
logical_filter (LogicalAndFilter or LogicalOrFilter) – The logical filter to analyze.
nesting_level (int) – The nesting level of the filter.
debug (bool) – Whether to print debug information.
A result object containing a view filter logic container. If an error occurs, the result object will indicate failure and contain an error message.
Analyze past in view filters and return a list of view filter objects.
doc (Document) – The Revit document.
filters (FilterElementCollector) – The view filters to analyze.
forms (module) – The pyrevit forms module.
debug (bool) – Whether to print debug information.
A result object containing a list of view filter objects. If an error occurs, the result object will indicate failure and contain an error message.
Convertes a revit sheet to a data instance sheet.
doc (Autodesk.Revit.DB.Document) – The Revit document.
sheet (Autodesk.Revit.DB.view) – A revit sheet
A data sheet instance
Converts a Revit ViewPort into a data viewport
doc (Autodesk.Revit.DB.Document) – The Revit document.
view_port (Autodesk.Revit.DB.ViewPort) – A Revit ViewPort
A populated data viewport instance
Converts a list of schedule sheet instances to view port data instances
doc (Autodesk.Revit.DB.Document) – The Revit document.
sheet (Autodesk.Revit.DB.ViewSheet) – The sheet of which to get the schedule instance from.
revit_schedule_sheet_instances ([Autodesk.Revit.DB.ScheduleSheetInstance]) – A list of schedule sheet instances
A list of populated data viewport instances