Skip to main content

Documentation

Less than 1 minute

This project is designed based on the development of the Revit API, which currently supports the 2018-2024 version. Mainly divided into DB and UI two parts. The encapsulated methods are mainly extension methods, which can be called directly after the variable, or static methods can be called in the extended class. Here are two ways to call it

  1. Direct call
point.Offset(direction, 100);
  1. Extended class call
RevitSugar.DB.XYZExtension.Offset(point, direction, 100)

Recommend a Revit API online website (https://www.revitapidocs.com/). The api documentation for the 2019-2024 release is included, as well as extensive demo code to help understand each api.

DB part

Curve

Document

Element Filter

Point

Geometry

Transaction

View

Math

UI part

External Command

External Event

Selection Filter