SetFlags Method (Int32, Int32)


Sets the flags associated to a given measurement.

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

Syntax

C#
public void SetFlags(
	int flags,
	int measurement
)
Visual Basic
Public Sub SetFlags ( _
	flags As Integer, _
	measurement As Integer _
)
Visual C++
public:
void SetFlags(
	int flags, 
	int measurement
)

Parameters

flags
Type: SystemInt32
The value of the flags to set. Flags values are defined in the enumerated class ValueAtPointFlags and are combined into the int value.
measurement
Type: SystemInt32
Measurement for which to set flags.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for measurement is negative.

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 →