Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Annotation.Utility package

Submodules

duHast.Revit.Annotation.Utility.gen_annotation_type_sorting module

This module contains a Revit generic annotation utility functions.

duHast.Revit.Annotation.Utility.gen_annotation_type_sorting.build_generic_annotation_types_dictionary(collector, dic)

Returns the dictionary past in with keys and or values added retrieved from collector past in. :param collector: Filtered element collector containing GenericAnnotation type elements of family symbols. :type collector: Autodesk.Revit.DB.FilteredElementCollector :param dic: Dictionary, the key is the family name and the value a list of element ids representing annotation types. :type dic: dic: key str, values list of Autodesk.Revit.DB.ElementId :return: Past in expanded by values from collector. Dictionary the key is the Family name and the value a list of element ids. :rtype: dic: key str, values list of Autodesk.Revit.DB.ElementId

duHast.Revit.Annotation.Utility.gen_annotation_type_sorting.sort_generic_annotation_types_by_family_name(doc)

Returns the dictionary keys is autodesk.revit.db element type as string and values are elements of that type.

Parameters:
  • doc (Autodesk.Revit.DB.Document) – Current Revit model document.

  • collector (Autodesk.Revit.DB.FilteredElementCollector) – A filtered element collector containing elements.

Returns:

Dictionary where key is the element type as string and value is a list of all elements belonging to the element type.

Return type:

dic{str:list[Autodesk.Revit.DB.Element]}

Module contents