LevelOfDetail Property


The level of detail the view is going to be rendered at.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2014

Syntax

C#
public int LevelOfDetail { get; set; }
Visual Basic
Public Property LevelOfDetail As Integer
	Get
	Set
Visual C++
public:
property int LevelOfDetail {
	int get ();
	void set (int value);
}

Remarks

The value is an integer number in range of [0,15] (inclusive), or a value {-1}. If the value is positive, Revit will use the suggested level of detail when tessellating faces; otherwise it will use its default algorithm, which is based on output resolution.

If an explicit level of detail is requested (i.e. a positive value), using a value close to the middle of the valid range yields a very reasonable tessellation. Revit uses level 8 as its 'normal' LoD.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException When setting this property: The level of detail is not in valid range. It must be a number between -1 and 15, all inclusive.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →