SetLineIncluded Method


Sets if the line from desired layer at the specified position is included or not.

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

Syntax

C#
public void SetLineIncluded(
	bool include,
	AreaReinforcementLayerType layer,
	int linePositionIndex
)
Visual Basic
Public Sub SetLineIncluded ( _
	include As Boolean, _
	layer As AreaReinforcementLayerType, _
	linePositionIndex As Integer _
)
Visual C++
public:
void SetLineIncluded(
	bool include, 
	AreaReinforcementLayerType layer, 
	int linePositionIndex
)

Parameters

include
Type: SystemBoolean
True to include the line, false to exclude the line.
layer
Type: Autodesk.Revit.DB.StructureAreaReinforcementLayerType
The layer on which the line stays.
linePositionIndex
Type: SystemInt32
The index of the line from the desired layer. It should be an index between 0 and (NumberOfLines-1).

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException linePositionIndex is not in the range [ 0, NumberOfLines-1 ]. -or- A value passed for an enumeration argument is not a member of that enumeration
Autodesk.Revit.ExceptionsInapplicableDataException The layer layer isn't active.
Autodesk.Revit.ExceptionsInvalidOperationException This AreaReinforcement does not host Rebar.

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 →