Sample Code Revit Batch Processor 1.1.11 documentation
Loops over failure messages and extracts separation lines listed. There are always two curves per exception, even if one curve overlaps a number of other curves.
doc (Autodesk.Revit.DB.Document) – The current model document.
failure_messages ([Autodesk.Revit.DB.FailureMessage]) – List of failure messages relating to separation lines overlap
group_id (int) – group id curves need to belong to for processing (-1 not in a group)
List of RevitWarningOverlap instances.
[RevitWarningOverlap
]
Check a list of curve sets for overlaps or duplicates.
curves ([:class: RevitWarningOverlap]) – A list of curve sets, where each set contains two curves.
group_id (int) – group id curves need to belong to for processing (-1 not in a group)
list: A list of curves that can be deleted because they are either completely within another curve or identical to another curve.
ValueError: If a curve set does not have a length of 2.
curves = [[curve1, curve2], [curve3, curve4], …] result = check_curves_overlaps(curves) print(result)
Deletes curves in a Revit model.
doc ((Autodesk.Revit.DB.Document)) – The Revit model document.
curves_to_delete ([:class: RevitWarningOverlap]) – List of curves to be deleted.
curve_descriptor (str) – line type descriptor
res.Result: A res.Result object that contains the status of the deletion operation.
Modifies curves in a Revit model by lengthening them.
doc ((Autodesk.Revit.DB.Document)) – The Revit model document.
guid ((Autodesk.Revit.DB.Guid):) – The GUID used to filter the failure messages.
transaction_manager ((function)) – The transaction manager used to perform the modifications.
group_id (int) – group id curves need to belong to for processing (-1 not in a group)
callback (func (value, maximum_value)) – function reporting progress update.
res.Result: A res.Result object that contains the status of the modifications performed.
Modifies curves in a Revit model by lengthening them.
doc ((Autodesk.Revit.DB.Document)) – The Revit model document.
guid ((Autodesk.Revit.DB.Guid):) – The GUID used to filter the failure messages.
transaction_manager ((function)) – The transaction manager used to perform the modifications.
res.Result: A res.Result object that contains the status of the modifications performed.