Sample Code Revit Batch Processor 1.1.11 documentation
Draws a detail line at 90 degree angle to given points, rotated around 0 end point.
Needs to run in a transaction.
- param doc:
The current model document
- type doc:
Autodesk.Revit.DB.Document
- param view:
The plan view to draw the detail line on.
- type view:
Autodesk.Revit.DB.View
- param start_point:
Start point of line.
- type start_point:
Autodesk.Revit.DB.XYZ
- param end_point:
End point of line.
- type end_point:
Autodesk.Revit.DB.XYZ
- return:
Result class instance.
result.status. True if line was rotated and drawn on view successfully, otherwise False.
result.message will contain the original points and rotated start and end points.
result.result empty list
On exception:
result.status (bool) will be False.
result.message will contain generic exception message.
result.result will be empty