Add segments to the fascia.

Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)

Syntax

C#
public override void AddSegment(
	Reference targetRef
)
Visual Basic
Public Overrides Sub AddSegment ( _
	targetRef As Reference _
)
Visual C++
public:
virtual void AddSegment(
	Reference^ targetRef
) override

Parameters

targetRef
Type: Autodesk.Revit.DB..::..Reference
Segment's reference on which want to be added.

Exceptions

ExceptionCondition
Autodesk.Revit.Exceptions..::..ArgumentNullException This exception will be thrown in following cases: 1. Input targetRef is nullNothingnullptra null reference (Nothing in Visual Basic). 2. Input targetRef is not nullNothingnullptra null reference (Nothing in Visual Basic) but contains nothing.
Autodesk.Revit.Exceptions..::..InvalidOperationException This exception will be thrown in following cases: 1. Input targetRef has already been added into the fascia. 2. Internal code fails to create the segment object. 3. Regeneration fails.
Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException This exception will be thrown if the reference is suitable for creating a fascia as required. The reference allowed is : 1. Model Line 2. Roof's horizontal edges 3. Soffit's horizontal edges 4. Other fascia's horizontal edges

See Also