SetStartEndPercentages Method


Sets start and end percentages.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public void SetStartEndPercentages(
	int startPercentage,
	int endPercentage
)
Visual Basic
Public Sub SetStartEndPercentages ( _
	startPercentage As Integer, _
	endPercentage As Integer _
)
Visual C++
public:
void SetStartEndPercentages(
	int startPercentage, 
	int endPercentage
)

Parameters

startPercentage
Type: SystemInt32
The start percentage defines where depth cueing starts.
endPercentage
Type: SystemInt32
The end percentage defines where depth cueing ends.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The start and end percentages values are not valid. The valid range is 0 to 100 and start is smaller than end.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →