Sample Code Revit Batch Processor 1.1.11 documentation
Copy elements from one document to another
destination_doc (Document) – The document which will be the copy destination
source_doc (Document) – The template document which will be the copy source
list_of_ids (List[ElementId]) – List of element ids to copy
element_str (str) – String of element type to copy for logging messages
List of new elements
list
Get the room an element is in.The room phase need to match the phase the element is created in.
element (FamilyInstance) – The element to check
phase_dict (dict) – The dictionary of phase name to phase element id ( key is the phase name, value is the phase element id)
The room the element is in or None if no room exists or the element is not in a room
Room
Convertes a Revit colour instance to a ColourBase storage instance
revit_colour (Autodesk.Revit.DB.Color) – A revit Colour object instance
A ColourBase storage instance