Sample Code Revit Batch Processor 1.1.15 documentation
Draws a line between two points in a Revit view. :param doc: The Revit document. :type doc: Autodesk.Revit.DB.Document :param view: The view in which to draw the line. :type view: Autodesk.Revit.DB.View :param start_point: The start point of the line. :type start_point: Autodesk.Revit.DB.XYZ :param end_point: The end point of the line. :type end_point: Autodesk.Revit.DB.XYZ :return: Result object containing the status of the operation. :rtype: Result
Draw 2D lines on the bounding box of an element in view provided
doc (Autodesk.Revit.DB.Document) – The Revit document.
bounding_box (Autodesk.Revit.DB.BoundingBoxXYZ) – The bounding box of the element.
view (Autodesk.Revit.DB.View) – The view in which to draw the lines.
transaction_manager (function) – The transaction manager to use.
Result object containing the status of the operation.
Draw 2D lines on the bounding box of an element in view provided and in addition lines from each corner of the bounding box to the additional point.
doc (Autodesk.Revit.DB.Document) – The Revit document.
bounding_box (Autodesk.Revit.DB.BoundingBoxXYZ) – The bounding box of the element.
additional_point (Autodesk.Revit.DB.XYZ) – The additional point to draw lines to.
view (Autodesk.Revit.DB.View) – The view in which to draw the lines.
transaction_manager (function) – The transaction manager to use.
Result object containing the status of the operation.
class name Autodesk.Revit.DB.ElementType
class name Autodesk.Revit.DB.FilledRegionType
class name Autodesk.Revit.DB.FamilySymbol
List of class names which can be detailed components
Gets all detail component types in the model.
Filters by built in category.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing detail component types.
Autodesk.Revit.DB.FilteredElementCollector
Get all repeating detail type id’s in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A list of element ids representing repeating detail types.
list Autodesk.Revit.DB.ElementIds
Gets all detail symbol (types) ids in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A list of element ids representing detail symbols.
list Autodesk.Revit.DB.ElementIds
Gets the ids of all symbols used in repeating details.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
idsRepeatDet (list Autodesk.Revit.DB.ElementIds) – List of repeating detail type ids.
List of family symbol (type) ids.
list Autodesk.Revit.DB.ElementIds
Gets all filled region instances in a model.
Filters by class.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A list containing floor instances.
list Autodesk.Revit.DB.FilledRegion
Gets all filled region types ids in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A list of element ids representing filled region types.
list Autodesk.Revit.DB.ElementIds
Gets the curve loops of a filled region. :param filled_region: A filled region instance. :type filled_region: Autodesk.Revit.DB.FilledRegion
A list of curve loops.
list Autodesk.Revit.DB.CurveLoop
Gets loop area of a filled region. This will create a temporary filled region using just the loop and get the area.
filled_region (Autodesk.Revit.DB.FilledRegion) – A filled region instance.
loop_index (int) – The index of the loop to get the area for.
The area of the loop.
float
Gets the area of a filled region using the built-in parameter.
filled_region (Autodesk.Revit.DB.FilledRegion) – A filled region instance.
The area of the filled region.
float
Creates a filled region in the specified view.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
view (Autodesk.Revit.DB.View) – The view to create the filled region in.
curve_loops (list Autodesk.Revit.DB.CurveLoop) – The curve loops to use for the filled region.
filled_region_type (Autodesk.Revit.DB.ElementId) – The type of filled region to create.
A result object containing the created filled region instance.
Gets all used repeating detail type ids in the model. Used: at least one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of element ids representing repeating detail types. :rtype: list Autodesk.Revit.DB.ElementIds
Gets all unused repeating detail type ids in the model. Unused: not one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of element ids representing repeating detail types. :rtype: list Autodesk.Revit.DB.ElementIds
Gets type ids off all unused repeating detail types in model. This method can be used to safely delete unused repeating detail types. In the case that no basic wall instance using any of the types is placed, this will return all but one type id since Revit requires at least one repeating detail type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing all repeating detail types not in use. :rtype: list of Autodesk.Revit.DB.ElementId
Gets all used detail symbol type ids in model. Used: at least one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of family symbol (type) ids. :rtype: list Autodesk.Revit.DB.ElementIds
Gets all unused detail symbol type ids in model. Unused: Not one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of family symbol (type) ids. :rtype: list Autodesk.Revit.DB.ElementIds
Gets type ids off all unused detail symbols (types) in model. This method can be used to safely delete all unused detail symbols (types) and families. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing all unused detail symbols and families not in use. :rtype: list of Autodesk.Revit.DB.ElementId
Gets all used filled region type ids in model. Used: at least one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of filled region type ids. :rtype: list Autodesk.Revit.DB.ElementIds
‘ Gets all unused filled region type ids in model. Unused: Not one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of filled region type ids. :rtype: list Autodesk.Revit.DB.ElementIds
Gets ids off all unused filled region types in model. This method can be used to safely delete all unused filled region types in model. In the case that no filled region instance using any of the types is placed, this will return all but one type id since Revit requires at least one filled region type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing all unused filled region types not in use. :rtype: list of Autodesk.Revit.DB.ElementId