ReferenceIntersector Constructor (ICollection(ElementId), FindReferenceTarget, View3D)


Constructs a ReferenceIntersector which is set to return intersections from any of a set of target elements.

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

Syntax

C#
public ReferenceIntersector(
	ICollection<ElementId> targetElementIds,
	FindReferenceTarget targetType,
	View3D view3d
)
Visual Basic
Public Sub New ( _
	targetElementIds As ICollection(Of ElementId), _
	targetType As FindReferenceTarget, _
	view3d As View3D _
)
Visual C++
public:
ReferenceIntersector(
	ICollection<ElementId^>^ targetElementIds, 
	FindReferenceTarget targetType, 
	View3D^ view3d
)

Parameters

targetElementIds
Type: System.Collections.GenericICollectionElementId
The target element ids.
targetType
Type: Autodesk.Revit.DBFindReferenceTarget
The target type of references to return.
view3d
Type: Autodesk.Revit.DBView3D
The view in which to find references.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Returns true if the view is not a view template.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

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 →