GetValidTypes Method


Obtains a set of types that are valid for this subelement.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2018

Syntax

C#
public ISet<ElementId> GetValidTypes()
Visual Basic
Public Function GetValidTypes As ISet(Of ElementId)
Visual C++
public:
ISet<ElementId^>^ GetValidTypes()

Return Value

A set of element IDs of types that are valid for this subelement or an empty set if subelement cannot have type assigned.

Remarks

A type is valid for a subelement if it can be assigned to the subelement.

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 →