GetValidTypes Method


Subelement Get Valid Types Method

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

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ISet<ElementId> GetValidTypes()

Return Value

ISet ElementId
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

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 →