Revit 2026 API
Contour |
Add a single contour as a contour setting item to the current contour setting.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ContourSettingItem AddSingleContour( double elevation, ElementId subcategoryId )
Public Function AddSingleContour ( elevation As Double, subcategoryId As ElementId ) As ContourSettingItem
public: ContourSettingItem^ AddSingleContour( double elevation, ElementId^ subcategoryId )
member AddSingleContour : elevation : float * subcategoryId : ElementId -> ContourSettingItem
Parameters
- elevation Double
- The contour elevation.
- subcategoryId ElementId
- The contour line style subcategory id.
Return Value
ContourSettingItemThe newly added contour setting item.

Exception | Condition |
---|---|
ArgumentException | The given value for elevation is not finite |
ArgumentNullException | A non-optional argument was null |
See Also