Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.DetailLines package

Submodules

duHast.Revit.DetailLines.detail_lines module

This module contains a number of functions around Revit detail lines.

duHast.Revit.DetailLines.detail_lines.draw_detail_line_at_90_degree(doc, view, start_point, end_point)

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

Return type:

Result

Module contents